From 4c970812f2613e6a97cd12f68b281860b7f42685 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 16 Jul 2013 17:16:20 +0900 Subject: [PATCH] fix clang nonnull complaint --- src/bin/evas/evas_cserve2_cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/evas/evas_cserve2_cache.c b/src/bin/evas/evas_cserve2_cache.c index 1da7b957b6..b9283dac3a 100644 --- a/src/bin/evas/evas_cserve2_cache.c +++ b/src/bin/evas/evas_cserve2_cache.c @@ -473,7 +473,7 @@ _load_request_build(Image_Data *i, int *bufsize) ptr += filelen; memcpy(ptr, i->file->key, keylen); ptr += keylen; - memcpy(ptr, i->file->loader_data, loaderlen); + if (loaderlen > 0) memcpy(ptr, i->file->loader_data, loaderlen); *bufsize = size; @@ -1870,7 +1870,7 @@ _font_entry_debug_cb(const Eina_Hash *hash EINA_UNUSED, const void *key EINA_UNU len = strlen(fe->src->file) + 1; memcpy(buf, &len, intsize); buf += intsize; - memcpy(buf, fe->src->file, len); + if (len) memcpy(buf, fe->src->file, len); buf += len; // namelen + name @@ -1879,7 +1879,7 @@ _font_entry_debug_cb(const Eina_Hash *hash EINA_UNUSED, const void *key EINA_UNU len = strlen(fe->src->name) + 1; memcpy(buf, &len, intsize); buf += intsize; - memcpy(buf, fe->src->name, len); + if (len) memcpy(buf, fe->src->name, len); buf += len; // rend_flags, size, dpi -- 2.34.1