diff options
| author | Teruaki Kawashima <teru@rockbox.org> | 2009-07-29 13:56:23 +0000 |
|---|---|---|
| committer | Teruaki Kawashima <teru@rockbox.org> | 2009-07-29 13:56:23 +0000 |
| commit | 37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8 (patch) | |
| tree | 840aee71563c085c8d2fcf965f7685f86272afd9 /apps/plugins/properties.c | |
| parent | 221cae987f10cf5a7bf5c36faee80be6754e2422 (diff) | |
| download | rockbox-37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8.zip rockbox-37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8.tar.gz rockbox-37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8.tar.bz2 rockbox-37dd46e92f776c1bc4ee83fdcaceb8d5e15fb5c8.tar.xz | |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index b57150b..c76a25b 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 */ |