From f6025186fd1f6d9083c07568bc3d160f3e8774f8 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Fri, 4 Sep 2009 00:41:38 +0000 Subject: stop a potential crash caused by r22438 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22614 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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) -- cgit v1.2.3