]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Clarify that calling memset with '0' is intentional by casting the
authorNgie Cooper <yanegomi@gmail.com>
Tue, 13 Dec 2016 07:16:25 +0000 (23:16 -0800)
committerNgie Cooper <yaneurabeya@gmail.com>
Tue, 17 Jan 2017 02:17:52 +0000 (18:17 -0800)
value to (int)

Reported by: Coverity
CID: 1017786

libarchive/archive_write_set_format_iso9660.c

index 1d1f04e00f446b1944381c5a9d310290247f121b..ecc9f3263f2bed0598184bfc9b6d62be13241a1b 100644 (file)
@@ -2553,7 +2553,7 @@ set_date_time(unsigned char *p, time_t t)
 static void
 set_date_time_null(unsigned char *p)
 {
-       memset(p, '0', 16);
+       memset(p, (int)'0', 16);
        p[16] = 0;
 }