summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-05-10 18:44:24 -0400
committerJeffrey Walton <noloader@gmail.com>2020-05-10 18:44:24 -0400
commita647cbb00fa56943dcc94bdb034bc5a6b45dc178 (patch)
tree276fcead5945fb5507a9a41f0eca5b632841c2bb /misc.h
parent72cb91718fbcf8843d5181e792fbdf95c4aab128 (diff)
downloadcryptopp-git-a647cbb00fa56943dcc94bdb034bc5a6b45dc178.tar.gz
Clean GCC 10 Analyzer warnings
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index c82a860c..56677676 100644
--- a/misc.h
+++ b/misc.h
@@ -568,7 +568,8 @@ inline void memmove_s(void *dest, size_t sizeInBytes, const void *src, size_t co
# pragma warning(disable: 6386)
# endif
#endif
- memmove(dest, src, count);
+ if (src && dest)
+ memmove(dest, src, count);
#if CRYPTOPP_MSC_VERSION
# pragma warning(pop)
#endif