summaryrefslogtreecommitdiff
path: root/src/mint/mint_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint/mint_db.c')
-rw-r--r--src/mint/mint_db.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mint/mint_db.c b/src/mint/mint_db.c
index 750ff207b..0a531b202 100644
--- a/src/mint/mint_db.c
+++ b/src/mint/mint_db.c
@@ -820,6 +820,7 @@ TALER_MINT_DB_reserves_in_insert (PGconn *db,
PGresult *result;
int reserve_exists;
+ result = NULL;
if (NULL == reserve)
{
GNUNET_break (0);
@@ -860,7 +861,9 @@ TALER_MINT_DB_reserves_in_insert (PGconn *db,
goto rollback;
}
}
- PQclear (result); result = NULL;
+ if (NULL != result)
+ PQclear (result);
+ result = NULL;
/* create new incoming transaction */
struct TALER_DB_QueryParam params[] = {
TALER_DB_QUERY_PARAM_PTR (reserve->pub),