summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/emotion/emotion_webcam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/emotion/emotion_webcam.c b/src/lib/emotion/emotion_webcam.c
index 9a673d9174..04756cbeda 100644
--- a/src/lib/emotion/emotion_webcam.c
+++ b/src/lib/emotion/emotion_webcam.c
@@ -143,7 +143,7 @@ _emotion_check_device(Emotion_Webcam *ew)
143 eina_stringshare_del(ew->name); 143 eina_stringshare_del(ew->name);
144 free(ew); 144 free(ew);
145#ifdef HAVE_V4L2 145#ifdef HAVE_V4L2
146 if (fd > 0) close(fd); 146 if (fd >= 0) close(fd);
147#endif 147#endif
148 return EINA_FALSE; 148 return EINA_FALSE;
149} 149}