diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 17:20:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 17:20:23 +0000 |
commit | d8c53b12a818ff7cf82d06a1a69c395bdef85ee6 (patch) | |
tree | 0ebb0db416c157fcfde51a941185819dd12d51fd /src/datastore/test_datastore_api.c | |
parent | 5184c17d32a39c928c2a0fec3ee1ad098bbaa562 (diff) | |
download | gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.tar.gz gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.zip |
-avoid calling memcpy() with NULL argument, even if len is 0
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r-- | src/datastore/test_datastore_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 6ebfee01e..43f6e9fa6 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c | |||
@@ -297,7 +297,7 @@ delete_value (void *cls, | |||
297 | crc->size = size; | 297 | crc->size = size; |
298 | crc->key = *key; | 298 | crc->key = *key; |
299 | crc->data = GNUNET_malloc (size); | 299 | crc->data = GNUNET_malloc (size); |
300 | memcpy (crc->data, data, size); | 300 | GNUNET_memcpy (crc->data, data, size); |
301 | crc->phase = RP_DO_DEL; | 301 | crc->phase = RP_DO_DEL; |
302 | GNUNET_SCHEDULER_add_now (&run_continuation, | 302 | GNUNET_SCHEDULER_add_now (&run_continuation, |
303 | crc); | 303 | crc); |