diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-27 12:46:29 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-27 12:46:29 +0000 |
commit | 34415f9534f9f42b0a538b1bb22fc039ce670a76 (patch) | |
tree | 0db54ecc256d6fc080faffec3a4282bd58b0a573 | |
parent | 9d6ad9ebfcb4ce67b5b50d61ddb451c1b01e2785 (diff) | |
download | gnunet-gtk-34415f9534f9f42b0a538b1bb22fc039ce670a76.tar.gz gnunet-gtk-34415f9534f9f42b0a538b1bb22fc039ce670a76.zip |
- fix segfault
-rw-r--r-- | src/gns/gnunet-gns-gtk_zone.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gns/gnunet-gns-gtk_zone.c b/src/gns/gnunet-gns-gtk_zone.c index ef2e1ad5..c541fcba 100644 --- a/src/gns/gnunet-gns-gtk_zone.c +++ b/src/gns/gnunet-gns-gtk_zone.c | |||
@@ -1067,8 +1067,9 @@ zone_iteration_proc (void *cls, | |||
1067 | if (NULL == val) | 1067 | if (NULL == val) |
1068 | GNUNET_asprintf(&val, "%s", EXPIRE_INVALID_STRING); | 1068 | GNUNET_asprintf(&val, "%s", EXPIRE_INVALID_STRING); |
1069 | 1069 | ||
1070 | type_str = strdup (GNUNET_NAMESTORE_number_to_typename(rd[c].record_type)); | 1070 | if (NULL != GNUNET_NAMESTORE_number_to_typename(rd[c].record_type)) |
1071 | if (NULL == type_str) | 1071 | type_str = strdup (GNUNET_NAMESTORE_number_to_typename(rd[c].record_type)); |
1072 | else | ||
1072 | GNUNET_asprintf(&type_str, "%s", EXPIRE_INVALID_STRING); | 1073 | GNUNET_asprintf(&type_str, "%s", EXPIRE_INVALID_STRING); |
1073 | 1074 | ||
1074 | if ((0 ==strcmp (name, ROOT_STR)) && (GNUNET_NAMESTORE_TYPE_PSEU == rd[c].record_type)) | 1075 | if ((0 ==strcmp (name, ROOT_STR)) && (GNUNET_NAMESTORE_TYPE_PSEU == rd[c].record_type)) |