mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
virsh: Need to intialize 'str'
It was possible to call VIR_FREE in error prior to initialization.
This commit is contained in:
parent
e2ea90ce26
commit
0ce43ca4ab
@ -2268,7 +2268,7 @@ vshOutputLogFile(vshControl *ctl, int log_level, const char *msg_format,
|
||||
va_list ap)
|
||||
{
|
||||
virBuffer buf = VIR_BUFFER_INITIALIZER;
|
||||
char *str;
|
||||
char *str = NULL;
|
||||
size_t len;
|
||||
const char *lvl = "";
|
||||
time_t stTime;
|
||||
|
Loading…
x
Reference in New Issue
Block a user