1
0
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:
John Ferlan 2013-01-22 09:15:45 -05:00 committed by Peter Krempa
parent e2ea90ce26
commit 0ce43ca4ab

View File

@ -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;