diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-04 15:28:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-04 15:28:43 +0000 |
commit | c4a94f217f4685dcae58ad5a53efb310bf1324d1 (patch) | |
tree | 22adbf23344df7ac8d78a77858fb43e9cb32072c /src/pq/pq.c | |
parent | e745a26c9c236247300f2b8507158b8f21899063 (diff) | |
download | gnunet-c4a94f217f4685dcae58ad5a53efb310bf1324d1.tar.gz gnunet-c4a94f217f4685dcae58ad5a53efb310bf1324d1.zip |
simplify PQ API by removing NULL as a possible acceptable value
Diffstat (limited to 'src/pq/pq.c')
-rw-r--r-- | src/pq/pq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pq/pq.c b/src/pq/pq.c index 37d067edd..43186c41e 100644 --- a/src/pq/pq.c +++ b/src/pq/pq.c | |||
@@ -151,11 +151,9 @@ GNUNET_PQ_extract_result (PGresult *result, | |||
151 | &spec->dst_size, | 151 | &spec->dst_size, |
152 | spec->dst); | 152 | spec->dst); |
153 | if (GNUNET_SYSERR == ret) | 153 | if (GNUNET_SYSERR == ret) |
154 | return GNUNET_SYSERR; | ||
155 | if (GNUNET_NO == ret) | ||
156 | { | 154 | { |
157 | had_null = GNUNET_YES; | 155 | GNUNET_PQ_cleanup_result (rs); |
158 | continue; | 156 | return GNUNET_SYSERR; |
159 | } | 157 | } |
160 | if (NULL != spec->result_size) | 158 | if (NULL != spec->result_size) |
161 | *spec->result_size = spec->dst_size; | 159 | *spec->result_size = spec->dst_size; |