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
This commit is contained in:
Thomas Martitz 2009-08-12 15:00:16 +00:00
parent 50d09bd84c
commit 98f1aa6025

View file

@ -227,7 +227,7 @@ static bool do_slot(size_t slot_id, bool is_load) {
/* if we're saving to a slot, then get a brief description */
if (!is_load)
if (rb->kbd_input(desc_buf, 20) || !strlen(desc_buf) < 0)
if ( (rb->kbd_input(desc_buf, 20) < 0) || !strlen(desc_buf) )
{
strlcpy(desc_buf, "Untitled", 20);
}