提交 07696eb3 编写于 作者: J Jim Meyering

don't dereference uninitialized pointer

* src/storage_conf.c (virStoragePoolDefParsePerms): Initialize
"ptr" to NULL.
上级 014bb5cf
Mon Mar 2 10:16:04 +0100 2009 Jim Meyering <meyering@redhat.com>
don't dereference uninitialized pointer
* src/storage_conf.c (virStoragePoolDefParsePerms): Initialize
"ptr" to NULL.
Fri Feb 27 17:15:00 CET 2009 Chris Lalancette <clalance@redhat.com>
* src/qemu_driver.c: If there is a failure during offline migrate,
......
......@@ -381,7 +381,7 @@ virStoragePoolDefParsePerms(virConnectPtr conn,
if (!mode) {
perms->mode = 0700;
} else {
char *end;
char *end = NULL;
perms->mode = strtol(mode, &end, 8);
if (*end || perms->mode < 0 || perms->mode > 0777) {
virStorageReportError(conn, VIR_ERR_XML_ERROR,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册