mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
virfile: Need to initialize 'looppath'
It was possible to call VIR_FREE in cleanup prior to initialization.
This commit is contained in:
parent
3e8502165f
commit
50adf8271d
@ -602,7 +602,7 @@ static int virFileLoopDeviceOpen(char **dev_name)
|
||||
int fd = -1;
|
||||
DIR *dh = NULL;
|
||||
struct dirent *de;
|
||||
char *looppath;
|
||||
char *looppath = NULL;
|
||||
struct loop_info64 lo;
|
||||
|
||||
VIR_DEBUG("Looking for loop devices in /dev");
|
||||
|
Loading…
Reference in New Issue
Block a user