diff options
-rw-r--r-- | src/pq/db_pq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pq/db_pq.c b/src/pq/db_pq.c index f0412d49f..57bf172b5 100644 --- a/src/pq/db_pq.c +++ b/src/pq/db_pq.c @@ -145,7 +145,8 @@ TALER_PQ_extract_result (PGresult *result, if (NULL != rs[i].result_size) *rs[i].result_size = len; rs[i].dst_size = len; - rs[i].dst = GNUNET_malloc (len); + *((void **) rs[i].dst) = GNUNET_malloc (len); + rs[i].dst = * ((void **) rs[i].dst); } memcpy (rs[i].dst, res, |