diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-08-12 15:00:16 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-12 15:00:16 +0000 |
commit | 98f1aa6025c0d57daf7f89f74bb3bff8b95238ca (patch) | |
tree | d37eb84549dc602f75ac27d02eb4062f8cf2c6ab /apps | |
parent | 50d09bd84caad4a5ce19b1c5f0175ec82b49f5bb (diff) | |
download | rockbox-98f1aa6025c0d57daf7f89f74bb3bff8b95238ca.tar.gz rockbox-98f1aa6025c0d57daf7f89f74bb3bff8b95238ca.zip |
Fix mistake at checking the return in rockboy. Thanks Al Le for spotting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22273 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/rockboy/menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c index 290cac98de..455c91b5b6 100644 --- a/apps/plugins/rockboy/menu.c +++ b/apps/plugins/rockboy/menu.c | |||
@@ -227,7 +227,7 @@ static bool do_slot(size_t slot_id, bool is_load) { | |||
227 | 227 | ||
228 | /* if we're saving to a slot, then get a brief description */ | 228 | /* if we're saving to a slot, then get a brief description */ |
229 | if (!is_load) | 229 | if (!is_load) |
230 | if (rb->kbd_input(desc_buf, 20) || !strlen(desc_buf) < 0) | 230 | if ( (rb->kbd_input(desc_buf, 20) < 0) || !strlen(desc_buf) ) |
231 | { | 231 | { |
232 | strlcpy(desc_buf, "Untitled", 20); | 232 | strlcpy(desc_buf, "Untitled", 20); |
233 | } | 233 | } |