clean up postgres_get_reserve_history logic and improve docu

This commit is contained in:
Christian Grothoff 2015-06-05 15:04:47 +02:00
parent 49fdd32337
commit 7c04d12ea2

View File

@ -1527,7 +1527,7 @@ postgres_get_reserve_history (void *cls,
{ {
PQclear (result); PQclear (result);
ret = GNUNET_OK; /* It is OK if there are no withdrawls yet */ ret = GNUNET_OK; /* It is OK if there are no withdrawls yet */
break; goto cleanup;
} }
GNUNET_assert (NULL != rh); GNUNET_assert (NULL != rh);
GNUNET_assert (NULL != rh_tail); GNUNET_assert (NULL != rh_tail);
@ -1564,7 +1564,6 @@ postgres_get_reserve_history (void *cls,
ret = GNUNET_OK; ret = GNUNET_OK;
PQclear (result); PQclear (result);
} }
cleanup: cleanup:
if (GNUNET_SYSERR == ret) if (GNUNET_SYSERR == ret)
{ {