提交 50adf827 编写于 作者: J John Ferlan 提交者: Peter Krempa

virfile: Need to initialize 'looppath'

It was possible to call VIR_FREE in cleanup prior to initialization.
上级 3e850216
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册