[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20782 - gnunet-gtk/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20782 - gnunet-gtk/src/gns |
Date: |
Tue, 27 Mar 2012 14:46:29 +0200 |
Author: wachs
Date: 2012-03-27 14:46:29 +0200 (Tue, 27 Mar 2012)
New Revision: 20782
Modified:
gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
Log:
- fix segfault
Modified: gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
===================================================================
--- gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c 2012-03-27 12:46:13 UTC (rev
20781)
+++ gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c 2012-03-27 12:46:29 UTC (rev
20782)
@@ -1067,8 +1067,9 @@
if (NULL == val)
GNUNET_asprintf(&val, "%s", EXPIRE_INVALID_STRING);
- type_str = strdup (GNUNET_NAMESTORE_number_to_typename(rd[c].record_type));
- if (NULL == type_str)
+ if (NULL != GNUNET_NAMESTORE_number_to_typename(rd[c].record_type))
+ type_str = strdup
(GNUNET_NAMESTORE_number_to_typename(rd[c].record_type));
+ else
GNUNET_asprintf(&type_str, "%s", EXPIRE_INVALID_STRING);
if ((0 ==strcmp (name, ROOT_STR)) && (GNUNET_NAMESTORE_TYPE_PSEU ==
rd[c].record_type))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20782 - gnunet-gtk/src/gns,
gnunet <=