gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r26341 - gnunet/src/fs
Date: Wed, 6 Mar 2013 16:19:58 +0100

Author: grothoff
Date: 2013-03-06 16:19:58 +0100 (Wed, 06 Mar 2013)
New Revision: 26341

Modified:
   gnunet/src/fs/fs_uri.c
Log:
-fix

Modified: gnunet/src/fs/fs_uri.c
===================================================================
--- gnunet/src/fs/fs_uri.c      2013-03-06 15:17:14 UTC (rev 26340)
+++ gnunet/src/fs/fs_uri.c      2013-03-06 15:19:58 UTC (rev 26341)
@@ -940,16 +940,19 @@
   struct GNUNET_FS_Uri *ns_uri;
 
   if (NULL == id)
-  {
-    *emsg = GNUNET_strdup (_("identifier is NULL!"));
+  { 
+    if (NULL != emsg)
+      *emsg = GNUNET_strdup (_("identifier is NULL!"));
     return NULL;
   }
   else if ('\0' == id[0])
   {
-    *emsg = GNUNET_strdup (_("identifier has zero length!"));
+    if (NULL != emsg)
+      *emsg = GNUNET_strdup (_("identifier has zero length!"));
     return NULL;
   }
-  *emsg = NULL;
+  if (NULL != emsg)
+    *emsg = NULL;
   ns_uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri));
   ns_uri->type = GNUNET_FS_URI_SKS;
   GNUNET_FS_namespace_get_public_identifier (ns, &ns_uri->data.sks.ns);




reply via email to

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