Don't clip "/" if that's all we have

SVN revision: 16379
This commit is contained in:
lordchaos 2005-08-27 04:34:56 +00:00 committed by lordchaos
parent a228627e6c
commit 2c51880650
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ ecore_file_monitor_poll_add(const char *path,
em->path = strdup(path);
len = strlen(em->path);
if (em->path[len - 1] == '/')
if (em->path[len - 1] == '/' && strcmp(em->path, "/"))
em->path[len - 1] = 0;
em->func = func;