ff6046
From 465534a9417b7d7cf74f686da674b3f74d77ac58 Mon Sep 17 00:00:00 2001
ff6046
From: Yu Watanabe <watanabe.yu+github@gmail.com>
ff6046
Date: Wed, 8 Aug 2018 16:22:55 +0900
ff6046
Subject: [PATCH] util: introduce memcmp_safe()
ff6046
ff6046
(cherry picked from commit f30faf854b9bf01da294547a1bc3660506d750db)
ff6046
ff6046
Resolves: #1683319
ff6046
---
ff6046
 src/basic/util.h | 4 +---
ff6046
 1 file changed, 1 insertion(+), 3 deletions(-)
ff6046
ff6046
diff --git a/src/basic/util.h b/src/basic/util.h
ff6046
index 4659a21b06..c70467f98c 100644
ff6046
--- a/src/basic/util.h
ff6046
+++ b/src/basic/util.h
ff6046
@@ -113,9 +113,7 @@ static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, int (*com
ff6046
         qsort_r(base, nmemb, size, compar, userdata);
ff6046
 }
ff6046
 
ff6046
-/**
ff6046
- * Normal memcpy requires src to be nonnull. We do nothing if n is 0.
ff6046
- */
ff6046
+/* Normal memcpy requires src to be nonnull. We do nothing if n is 0. */
ff6046
 static inline void memcpy_safe(void *dst, const void *src, size_t n) {
ff6046
         if (n == 0)
ff6046
                 return;