exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 19f05fd20b8baacfb022ee1391fbb6591e81b1bd
parent f1d86b7ec238b3b130582cf58d78eb8a25ef17c7
Author: Sree Harsha Totakura <sreeharsha@totakura.in>
Date:   Sat,  7 Mar 2015 14:01:26 +0100

db: Fix uninitialized result cleanup

Diffstat:
Msrc/mint/mint_db.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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),