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/ats/test_ats_lib.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/ats/test_ats_lib.c')
-rw-r--r-- | src/ats/test_ats_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ats/test_ats_lib.c b/src/ats/test_ats_lib.c index b0c42ac3d..d02d257ad 100644 --- a/src/ats/test_ats_lib.c +++ b/src/ats/test_ats_lib.c | |||
@@ -364,7 +364,7 @@ make_peer (uint32_t pid, | |||
364 | memset (pk, | 364 | memset (pk, |
365 | (int) pid, | 365 | (int) pid, |
366 | sizeof (struct GNUNET_PeerIdentity)); | 366 | sizeof (struct GNUNET_PeerIdentity)); |
367 | memcpy (pk, | 367 | GNUNET_memcpy (pk, |
368 | &pid, | 368 | &pid, |
369 | sizeof (uint32_t)); | 369 | sizeof (uint32_t)); |
370 | } | 370 | } |