diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index 396617f40b..81b5098a2a 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c @@ -2839,9 +2839,13 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) long graysize; /* helper */ #endif + if(!parameter) return PLUGIN_ERROR; + rb->strcpy(np_file, parameter); get_pic_list(); + if(!entries) return PLUGIN_ERROR; + #if (PLUGIN_BUFFER_SIZE >= MIN_MEM) && !defined(SIMULATOR) if(rb->audio_status()) {