gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r7174 - in GNUnet/src/applications/fs: ecrs tools


From: gnunet
Subject: [GNUnet-SVN] r7174 - in GNUnet/src/applications/fs: ecrs tools
Date: Fri, 13 Jun 2008 01:42:18 -0600 (MDT)

Author: grothoff
Date: 2008-06-13 01:42:18 -0600 (Fri, 13 Jun 2008)
New Revision: 7174

Modified:
   GNUnet/src/applications/fs/ecrs/download.c
   GNUnet/src/applications/fs/tools/gnunet-auto-share.c
Log:
uninitfixes

Modified: GNUnet/src/applications/fs/ecrs/download.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/download.c  2008-06-13 07:41:41 UTC (rev 
7173)
+++ GNUnet/src/applications/fs/ecrs/download.c  2008-06-13 07:42:18 UTC (rev 
7174)
@@ -879,7 +879,6 @@
                                    void *ttClosure)
 {
   struct GNUNET_ECRS_DownloadContext *rm;
-  struct GNUNET_FS_SearchContext *sc;
   int ret;
 
   if (length == 0)
@@ -895,10 +894,7 @@
                                                 no_temporaries,
                                                 dpcb, dpcbClosure);
   if (rm == NULL)
-    {
-      GNUNET_FS_destroy_search_context (sc);
-      return GNUNET_SYSERR;
-    }
+    return GNUNET_SYSERR;    
   while ((GNUNET_OK == tt (ttClosure)) &&
          (GNUNET_YES != GNUNET_shutdown_test ()) &&
          (rm->abortFlag == GNUNET_NO) && (rm->head != NULL))

Modified: GNUnet/src/applications/fs/tools/gnunet-auto-share.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-auto-share.c        2008-06-13 
07:41:41 UTC (rev 7173)
+++ GNUnet/src/applications/fs/tools/gnunet-auto-share.c        2008-06-13 
07:42:18 UTC (rev 7174)
@@ -603,6 +603,7 @@
   if ((GNUNET_NO == debug_flag)
       && (GNUNET_OK != GNUNET_terminal_detach (ectx, cfg, filedes)))
     return GNUNET_SYSERR;
+  head = NULL;
   sock = GNUNET_client_connection_create (ectx, cfg);
   if (sock == NULL)
     {
@@ -632,7 +633,6 @@
   /* fundamental init */
   ctx = GNUNET_FSUI_start (ectx, cfg, "gnunet-auto-share", GNUNET_NO, 32,
                            &printstatus, &verbose);
-  head = NULL;
   while (argc > 0)
     {
       pos = GNUNET_malloc (sizeof (struct DirectoryRecord));





reply via email to

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