From 08c80489cdac17e710164ee81a8094362b61f574 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Sat, 20 Jan 2018 15:37:47 +0000 Subject: [PATCH] Silence the gcc warning: 'op' may be used uninitialized in this function Approved by: kevans --- usr.bin/hexdump/conv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/hexdump/conv.c b/usr.bin/hexdump/conv.c index f137e1076e63..160158b0a5b6 100644 --- a/usr.bin/hexdump/conv.c +++ b/usr.bin/hexdump/conv.c @@ -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--;