diff options
Diffstat (limited to 'src/pq/pq_connect.c')
-rw-r--r-- | src/pq/pq_connect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c index a911bf8e1..e8617a5c9 100644 --- a/src/pq/pq_connect.c +++ b/src/pq/pq_connect.c | |||
@@ -352,6 +352,7 @@ GNUNET_PQ_reconnect (struct GNUNET_PQ_Context *db) | |||
352 | PQsetNoticeProcessor (db->conn, | 352 | PQsetNoticeProcessor (db->conn, |
353 | &pq_notice_processor_cb, | 353 | &pq_notice_processor_cb, |
354 | db); | 354 | db); |
355 | if (NULL != db->load_path) | ||
355 | { | 356 | { |
356 | PGresult *res; | 357 | PGresult *res; |
357 | ExecStatusType est; | 358 | ExecStatusType est; |
@@ -414,6 +415,7 @@ GNUNET_PQ_reconnect (struct GNUNET_PQ_Context *db) | |||
414 | { | 415 | { |
415 | PGresult *res; | 416 | PGresult *res; |
416 | 417 | ||
418 | GNUNET_assert (NULL != db->load_path); | ||
417 | res = PQprepare (db->conn, | 419 | res = PQprepare (db->conn, |
418 | "gnunet_pq_check_patch", | 420 | "gnunet_pq_check_patch", |
419 | "SELECT" | 421 | "SELECT" |