return NULL on failure here

SVN revision: 68613
This commit is contained in:
Mike Blumenkrantz 2012-03-02 03:04:33 +00:00
parent 4edbb6487c
commit ade84d3941
1 changed files with 5 additions and 0 deletions

View File

@ -204,6 +204,11 @@ eio_monitor_stringshared_add(const char *path)
_eio_monitor_stat_cb,
_eio_monitor_error_cb,
monitor);
if (!monitor->exist)
{
_eio_monitor_free(monitor);
return NULL;
}
eina_hash_direct_add(_eio_monitors, path, monitor);