aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_sqlite.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-09-11 12:22:57 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-09-11 12:22:57 +0000
commit23c5ad04c768190d178518ada3fccf7d39d676b7 (patch)
tree8048ce377faeafa48d6ccd4050a548c550f90cdd /src/namestore/plugin_namestore_sqlite.c
parent30b74c15b7f76b0371495f79447a8aaebcc71636 (diff)
downloadgnunet-23c5ad04c768190d178518ada3fccf7d39d676b7.tar.gz
gnunet-23c5ad04c768190d178518ada3fccf7d39d676b7.zip
- iterator NULL check
- do no empty name if it did not exist before
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r--src/namestore/plugin_namestore_sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c
index b9fcce907..d062c81a1 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -751,8 +751,8 @@ get_record_and_call_iterator (struct Plugin *plugin,
751 } 751 }
752 else if (NULL != zone_key) 752 else if (NULL != zone_key)
753 { 753 {
754 iter (iter_cls, zone_key, label, 754 if (NULL != iter)
755 record_count, rd); 755 iter (iter_cls, zone_key, label, record_count, rd);
756 ret = GNUNET_YES; 756 ret = GNUNET_YES;
757 } 757 }
758 } 758 }