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/namestore/plugin_rest_namestore.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/namestore/plugin_rest_namestore.c')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index 78b6398c6..35d3595ce 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c | |||
@@ -744,7 +744,7 @@ namestore_create_cont (struct GNUNET_REST_RequestHandle *con, | |||
744 | return; | 744 | return; |
745 | } | 745 | } |
746 | term_data[handle->rest_handle->data_size] = '\0'; | 746 | term_data[handle->rest_handle->data_size] = '\0'; |
747 | memcpy (term_data, | 747 | GNUNET_memcpy (term_data, |
748 | handle->rest_handle->data, | 748 | handle->rest_handle->data, |
749 | handle->rest_handle->data_size); | 749 | handle->rest_handle->data_size); |
750 | data_js = json_loads (term_data, | 750 | data_js = json_loads (term_data, |