svn commit: r328200 - head/usr.bin/hexdump
Li-Wen Hsu
lwhsu at FreeBSD.org
Sat Jan 20 15:37:48 UTC 2018
Author: lwhsu (ports committer)
Date: Sat Jan 20 15:37:47 2018
New Revision: 328200
URL: https://svnweb.freebsd.org/changeset/base/328200
Log:
Silence the gcc warning: 'op' may be used uninitialized in this function
Approved by: kevans
Modified:
head/usr.bin/hexdump/conv.c
Modified: head/usr.bin/hexdump/conv.c
==============================================================================
--- head/usr.bin/hexdump/conv.c Sat Jan 20 14:59:37 2018 (r328199)
+++ head/usr.bin/hexdump/conv.c Sat Jan 20 15:37:47 2018 (r328200)
@@ -58,6 +58,8 @@ conv_c(PR *pr, u_char *p, size_t bufsize)
u_char peekbuf[MB_LEN_MAX];
u_char *op;
+ op = NULL;
+
if (pr->mbleft > 0) {
str = "**";
pr->mbleft--;
More information about the svn-src-all
mailing list