summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-09-04 00:41:38 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-09-04 00:41:38 +0000
commitf6025186fd1f6d9083c07568bc3d160f3e8774f8 (patch)
tree5135e4162223cfc00aad9ab3cb663f9fb6c6aaa2 /apps/gui
parent2ab627d3097ac7098741a724fc27b1c261473d4f (diff)
stop a potential crash caused by r22438
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22614 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/wps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index f624365026..99bc731c7d 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -115,7 +115,7 @@ void wps_data_load(enum screen_type screen, const char *buf, bool isfile)
* if you're feeling brave.
*/
- if (! strcmp(buf, DEFAULT_WPS(screen)) )
+ if (buf && ! strcmp(buf, DEFAULT_WPS(screen)) )
{
#ifdef HAVE_REMOTE_LCD
if (screen == SCREEN_REMOTE)