diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-03-29 20:51:06 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-03-29 20:51:06 +0000 |
commit | be8f0eb9e204759ea0032d75c39c8421ebefcb07 (patch) | |
tree | ceb3e67796dab54ae937e47975d77e0f0ea3c25d /tools/genlang2 | |
parent | 3622c9357ea7f44cc09acf22bb2b6a9b77d7e803 (diff) | |
download | rockbox-be8f0eb9e204759ea0032d75c39c8421ebefcb07.tar.gz rockbox-be8f0eb9e204759ea0032d75c39c8421ebefcb07.zip |
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
Diffstat (limited to 'tools/genlang2')
-rwxr-xr-x | tools/genlang2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/genlang2 b/tools/genlang2 index e9c21fb65c..7d82f21b31 100755 --- a/tools/genlang2 +++ b/tools/genlang2 | |||
@@ -486,6 +486,11 @@ for $i (0x8000 .. ($voiceid-1)) { | |||
486 | 486 | ||
487 | $dest =~ s:\"$:\\0\":; # insert a \0 before the second quote | 487 | $dest =~ s:\"$:\\0\":; # insert a \0 before the second quote |
488 | 488 | ||
489 | if(!$dest) { | ||
490 | # this is just to be on the safe side | ||
491 | $dest = '"\0"'; | ||
492 | } | ||
493 | |||
489 | printf CFILE (" %s\n", $dest); | 494 | printf CFILE (" %s\n", $dest); |
490 | } | 495 | } |
491 | 496 | ||