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 <kzak@redhat.com>
This commit is contained in:
parent
4b328279ce
commit
aec01d7211
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue