libpq: do not loose the ptr where new memory should be allocated.

This commit is contained in:
Sree Harsha Totakura 2015-04-29 11:37:01 +02:00
parent 7a12aea7af
commit 211cd3cdb7

View File

@ -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,