mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-06 13:20:20 +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;
|
int fd = -1;
|
||||||
DIR *dh = NULL;
|
DIR *dh = NULL;
|
||||||
struct dirent *de;
|
struct dirent *de;
|
||||||
char *looppath;
|
char *looppath = NULL;
|
||||||
struct loop_info64 lo;
|
struct loop_info64 lo;
|
||||||
|
|
||||||
VIR_DEBUG("Looking for loop devices in /dev");
|
VIR_DEBUG("Looking for loop devices in /dev");
|
||||||
|
Loading…
Reference in New Issue
Block a user