gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r887 - GNUnet/src/util


From: durner
Subject: [GNUnet-SVN] r887 - GNUnet/src/util
Date: Wed, 8 Jun 2005 10:53:28 -0700 (PDT)

Author: durner
Date: 2005-06-08 10:53:25 -0700 (Wed, 08 Jun 2005)
New Revision: 887

Modified:
   GNUnet/src/util/configuration.c
Log:
configuration: always treat empty strings "" as NULL

Modified: GNUnet/src/util/configuration.c
===================================================================
--- GNUnet/src/util/configuration.c     2005-06-08 17:38:59 UTC (rev 886)
+++ GNUnet/src/util/configuration.c     2005-06-08 17:53:25 UTC (rev 887)
@@ -130,7 +130,10 @@
     FREENONNULL(e->ent_values[i]);
   }
   e->ent_names[i]  = STRDUP(name);
-  e->ent_values[i] = STRDUP(value);
+  if (value && *value)
+       e->ent_values[i] = STRDUP(value);
+  else
+       e->ent_values[i] = NULL;
 }
 
 int cfg_parse_file(char *filename) {





reply via email to

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