gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24773 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r24773 - gnunet/src/fs
Date: Mon, 5 Nov 2012 19:45:38 +0100

Author: grothoff
Date: 2012-11-05 19:45:38 +0100 (Mon, 05 Nov 2012)
New Revision: 24773

Modified:
   gnunet/src/fs/fs_dirmetascan.c
Log:
-tolerate NULL

Modified: gnunet/src/fs/fs_dirmetascan.c
===================================================================
--- gnunet/src/fs/fs_dirmetascan.c      2012-11-05 18:42:08 UTC (rev 24772)
+++ gnunet/src/fs/fs_dirmetascan.c      2012-11-05 18:45:38 UTC (rev 24773)
@@ -232,8 +232,11 @@
   struct GNUNET_FS_DirScanner *ds = cls;
 
   ds->stop_task = GNUNET_SCHEDULER_NO_TASK;
-  GNUNET_HELPER_stop (ds->helper);
-  ds->helper = NULL;
+  if (NULL != ds->helper)
+  {
+    GNUNET_HELPER_stop (ds->helper);
+    ds->helper = NULL;
+  }
   ds->progress_callback (ds->progress_callback_cls, 
                         NULL, GNUNET_SYSERR,
                         GNUNET_FS_DIRSCANNER_FINISHED);    




reply via email to

[Prev in Thread] Current Thread [Next in Thread]