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:
parent
50d09bd84c
commit
98f1aa6025
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue