git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@65137
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
const Emotion_Webcam *ew;
const Eina_List *l;
- EINA_LIST_FOREACH(_emotion_webcams->webcams, l, ew)
- if (ew->device && strcmp(device, ew->device) == 0)
- return ew->custom;
+ if (_emotion_webcams)
+ {
+ EINA_LIST_FOREACH(_emotion_webcams->webcams, l, ew)
+ if (ew->device && strcmp(device, ew->device) == 0)
+ return ew->custom;
+ }
return NULL;
}