virfile: Need to initialize 'looppath'

It was possible to call VIR_FREE in cleanup prior to initialization.
This commit is contained in:
John Ferlan 2013-01-22 09:15:43 -05:00 committed by Peter Krempa
parent 3e8502165f
commit 50adf8271d

View File

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