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:
Stefan Schmidt 2012-06-14 15:01:54 +00:00
parent 54b9313197
commit ec9a93ff43
1 changed files with 1 additions and 1 deletions

View File

@ -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);