forked from len0rd/rockbox
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
This commit is contained in:
parent
221cae987f
commit
37dd46e92f
4 changed files with 4 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
int ok;
|
||||
const char *filename = parameter;
|
||||
char *p;
|
||||
if(!parameter) return PLUGIN_ERROR;
|
||||
|
||||
DEBUGF("%s - %s\n", (char *)parameter, &filename[rb->strlen(filename)-4]);
|
||||
/* Check the extension. We only allow .m3u files. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue