mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-13 00:46:03 -06:00
qemu: Fix bogus warning about uninitialized saveptr
The warning is bogus since strtok_r doesn't use the value when it's first called and initializes it for the following calls.
This commit is contained in:
parent
a691cb88f2
commit
4684f478e4
@ -5621,7 +5621,7 @@ virDomainDefPtr qemuParseCommandLine(virCapsPtr caps,
|
||||
if (def->ndisks > 0) {
|
||||
const char *ceph_args = qemuFindEnv(progenv, "CEPH_ARGS");
|
||||
if (ceph_args) {
|
||||
char *hosts, *port, *saveptr, *token;
|
||||
char *hosts, *port, *saveptr = NULL, *token;
|
||||
virDomainDiskDefPtr first_rbd_disk = NULL;
|
||||
for (i = 0 ; i < def->ndisks ; i++) {
|
||||
virDomainDiskDefPtr disk = def->disks[i];
|
||||
|
Loading…
Reference in New Issue
Block a user