summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-03-29 20:51:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-03-29 20:51:06 +0000
commitbe8f0eb9e204759ea0032d75c39c8421ebefcb07 (patch)
treeceb3e67796dab54ae937e47975d77e0f0ea3c25d /tools
parent3622c9357ea7f44cc09acf22bb2b6a9b77d7e803 (diff)
downloadrockbox-be8f0eb9e204759ea0032d75c39c8421ebefcb07.tar.gz
rockbox-be8f0eb9e204759ea0032d75c39c8421ebefcb07.tar.bz2
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')
-rwxr-xr-xtools/genlang25
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)) {
$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);
}