summaryrefslogtreecommitdiffstats
path: root/x11-fm/nautilus/files/patch-libnautilus-private::nautilus-monitor.c.orig
blob: cc13fe51a61bdb5245032cd587d1256c63de9c37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

$FreeBSD: ports/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-monitor.c,v 1.2 2002/05/20 18:03:39 sobomax Exp $

--- libnautilus-private/nautilus-monitor.c  2001/12/07 22:54:34 1.1
+++ libnautilus-private/nautilus-monitor.c  2001/12/07 23:10:06
@@ -274,7 +274,8 @@
    }
    
    monitor = g_new0 (NautilusMonitor, 1);
-   FAMMonitorFile (connection, path, &monitor->request, NULL);
+   if (FAMMonitorFile (connection, path, &monitor->request, NULL) == -1)
+       return NULL;
 
    g_free (path);
 
@@ -314,7 +315,8 @@
    }
    
    monitor = g_new0 (NautilusMonitor, 1);
-   FAMMonitorDirectory (connection, path, &monitor->request, NULL);
+   if (FAMMonitorDirectory (connection, path, &monitor->request, NULL) == -1)
+       return NULL;
 
    g_assert (g_hash_table_lookup (get_request_hash_table (),
                       GINT_TO_POINTER (FAMREQUEST_GETREQNUM (&monitor->request))) == NULL);