From aec01d7211ee58948c6dbfb376ff52f0c9981ccf Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 28 Nov 2017 10:45:06 +0100 Subject: dmesg: fix compiler warning [-Wuninitialized] sys-utils/dmesg.c: In function ‘print_record.constprop.12’: sys-utils/dmesg.c:1039:14: warning: ‘mesg_size’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Karel Zak --- sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/dmesg.c') diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index bdd50b474..ad47ac44d 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -883,7 +883,7 @@ static void print_record(struct dmesg_control *ctl, char buf[128]; char fpbuf[32] = "\0"; char tsbuf[64] = "\0"; - size_t mesg_size; + size_t mesg_size = rec->mesg_size; int timebreak = 0; char *mesg_copy = NULL; const char *line = NULL; -- cgit v1.2.3-55-g7522