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:
Daniel Stenberg 2006-03-29 20:51:06 +00:00
parent 3622c9357e
commit be8f0eb9e2

View file

@ -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);
}