From 2c51880650faaec2635ccd3bde9b76276b242fd0 Mon Sep 17 00:00:00 2001 From: lordchaos Date: Sat, 27 Aug 2005 04:34:56 +0000 Subject: [PATCH] Don't clip "/" if that's all we have SVN revision: 16379 --- legacy/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c index 62b42583eb..6e40a06d7c 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c @@ -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;