summaryrefslogtreecommitdiffstats
path: root/apps/plugins/properties.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2009-07-29 13:56:23 +0000
committerTeruaki Kawashima <teru@rockbox.org>2009-07-29 13:56:23 +0000
commit37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8 (patch)
tree840aee71563c085c8d2fcf965f7685f86272afd9 /apps/plugins/properties.c
parent221cae987f10cf5a7bf5c36faee80be6754e2422 (diff)
downloadrockbox-37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8.tar.gz
rockbox-37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8.tar.bz2
rockbox-37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8.zip
Check if parameter is NULL in plugins which only works as viewer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22083 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/properties.c')
-rw-r--r--apps/plugins/properties.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index b57150b817..c76a25b06a 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -275,6 +275,7 @@ enum plugin_status plugin_start(const void* parameter)
int button;
bool quit = false;
char file[MAX_PATH];
+ if(!parameter) return PLUGIN_ERROR;
rb->strcpy(file, (const char *) parameter);
/* determine if it's a file or a directory */