[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2231 - gnunet-gtk/src/plugins/fs
From: |
durner |
Subject: |
[GNUnet-SVN] r2231 - gnunet-gtk/src/plugins/fs |
Date: |
Thu, 3 Nov 2005 09:43:12 -0800 (PST) |
Author: durner
Date: 2005-11-03 09:42:55 -0800 (Thu, 03 Nov 2005)
New Revision: 2231
Modified:
gnunet-gtk/src/plugins/fs/download.c
Log:
don't free null pointer
Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c 2005-11-02 20:37:04 UTC (rev
2230)
+++ gnunet-gtk/src/plugins/fs/download.c 2005-11-03 17:42:55 UTC (rev
2231)
@@ -475,8 +475,10 @@
"INCOMINGDIR",
_("You must specify a directory in the configuration"
" in section `%s' under `%s'."));
- if (!dstPath)
+ if (!dstPath) {
+ FREENONNULL(ren);
return;
+ }
/* If file is contained in a directory, create directory structure in
the file system. */
@@ -503,7 +505,7 @@
ln ? ln : fn, STRERROR(errno));
FREE(dstFile);
- FREE(ren);
+ FREENONNULL(ren);
return;
}
@@ -518,7 +520,7 @@
LOG(LOG_ERROR, _("Could not move or copy downloaded file %s to
%s: %s."),
fnURL, dstFile, STRERROR(errno));
FREE(dstFile);
- FREE(ren);
+ FREENONNULL(ren);
return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2231 - gnunet-gtk/src/plugins/fs,
durner <=