# Description: Fix common crash when trying to remove a NULL watch # Ubuntu: https://launchpad.net/bugs/269651 # Upstream: http://bugs.freedesktop.org/show_bug.cgi?id=18046 Index: consolekit-0.2.10/src/ck-file-monitor-inotify.c =================================================================== --- consolekit-0.2.10.orig/src/ck-file-monitor-inotify.c 2008-10-14 07:58:58.000000000 +0200 +++ consolekit-0.2.10/src/ck-file-monitor-inotify.c 2008-10-14 08:00:57.000000000 +0200 @@ -242,6 +242,10 @@ file_monitor_remove_watch (CkFileMonitor *monitor, FileInotifyWatch *watch) { + if (watch == NULL) { + return; /* FD #18064 */ + } + g_hash_table_remove (monitor->priv->path_to_watch, watch->path); g_hash_table_remove (monitor->priv->wd_to_watch,