oops, somehow a leading \ went missing making these checks a bit silly!

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31513 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2012-01-01 11:34:00 +00:00
parent 607b384a2a
commit 2dc19005b6

View file

@ -144,11 +144,11 @@ static bool verify_shortcut(struct shortcut* sc)
case SHORTCUT_BROWSER: case SHORTCUT_BROWSER:
case SHORTCUT_FILE: case SHORTCUT_FILE:
case SHORTCUT_PLAYLISTMENU: case SHORTCUT_PLAYLISTMENU:
return sc->u.path[0] != '0'; return sc->u.path[0] != '\0';
case SHORTCUT_SETTING: case SHORTCUT_SETTING:
return sc->u.setting != NULL; return sc->u.setting != NULL;
case SHORTCUT_TIME: case SHORTCUT_TIME:
return sc->name[0] != '0'; return sc->name[0] != '\0';
case SHORTCUT_DEBUGITEM: case SHORTCUT_DEBUGITEM:
case SHORTCUT_SEPARATOR: case SHORTCUT_SEPARATOR:
case SHORTCUT_SHUTDOWN: case SHORTCUT_SHUTDOWN: