file is not NULL and empty if a file is monitored

SVN revision: 29186
This commit is contained in:
Sebastian Dransfeld 2007-03-26 19:30:51 +00:00
parent 39f502106c
commit d79c286b70
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ _ecore_file_monitor_inotify_events(Ecore_File_Monitor *em, char *file, int mask)
char buf[PATH_MAX];
int isdir;
if (file)
if ((file) && (file[0]))
snprintf(buf, sizeof(buf), "%s/%s", em->path, file);
else
strcpy(buf, em->path);