mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
don't dereference uninitialized pointer
* src/storage_conf.c (virStoragePoolDefParsePerms): Initialize "ptr" to NULL.
This commit is contained in:
parent
014bb5cf7e
commit
07696eb347
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
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,
|
* src/qemu_driver.c: If there is a failure during offline migrate,
|
||||||
|
@ -381,7 +381,7 @@ virStoragePoolDefParsePerms(virConnectPtr conn,
|
|||||||
if (!mode) {
|
if (!mode) {
|
||||||
perms->mode = 0700;
|
perms->mode = 0700;
|
||||||
} else {
|
} else {
|
||||||
char *end;
|
char *end = NULL;
|
||||||
perms->mode = strtol(mode, &end, 8);
|
perms->mode = strtol(mode, &end, 8);
|
||||||
if (*end || perms->mode < 0 || perms->mode > 0777) {
|
if (*end || perms->mode < 0 || perms->mode > 0777) {
|
||||||
virStorageReportError(conn, VIR_ERR_XML_ERROR,
|
virStorageReportError(conn, VIR_ERR_XML_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user