Don't allow completely empty strings. This fixed the total mess I noticed
previous this fix. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9350 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3622c9357e
commit
be8f0eb9e2
1 changed files with 5 additions and 0 deletions
|
@ -486,6 +486,11 @@ for $i (0x8000 .. ($voiceid-1)) {
|
|||
|
||||
$dest =~ s:\"$:\\0\":; # insert a \0 before the second quote
|
||||
|
||||
if(!$dest) {
|
||||
# this is just to be on the safe side
|
||||
$dest = '"\0"';
|
||||
}
|
||||
|
||||
printf CFILE (" %s\n", $dest);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue