libpq: do not loose the ptr where new memory should be allocated.
This commit is contained in:
parent
7a12aea7af
commit
211cd3cdb7
@ -145,7 +145,8 @@ TALER_PQ_extract_result (PGresult *result,
|
|||||||
if (NULL != rs[i].result_size)
|
if (NULL != rs[i].result_size)
|
||||||
*rs[i].result_size = len;
|
*rs[i].result_size = len;
|
||||||
rs[i].dst_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,
|
memcpy (rs[i].dst,
|
||||||
res,
|
res,
|
||||||
|
Loading…
Reference in New Issue
Block a user