forked from enlightenment/efl
ecore_evas/fb: Also check for NULL argument to strtol()
We can't be sure that disp_name is not NULL here. Better check before handing it over to strtol() SVN revision: 72143
This commit is contained in:
parent
54b9313197
commit
ec9a93ff43
|
@ -639,7 +639,7 @@ ecore_evas_fb_new(const char *disp_name, int rotation, int w, int h)
|
|||
}
|
||||
|
||||
einfo = (Evas_Engine_Info_FB *)evas_engine_info_get(ee->evas);
|
||||
if (einfo)
|
||||
if (einfo && disp_name)
|
||||
{
|
||||
einfo->info.virtual_terminal = 0;
|
||||
einfo->info.device_number = strtol(disp_name, NULL, 10);
|
||||
|
|
Loading…
Reference in New Issue