mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
virStorageBackendFileSystemMount: placate clang
* src/storage/storage_backend_fs.c (virStorageBackendFileSystemMount): Clang was not smart enough, and mistakenly reported that "options" could be used uninitialized. Initialize it.
This commit is contained in:
parent
9ec1825982
commit
5cff81b147
@ -287,7 +287,7 @@ virStorageBackendFileSystemIsMounted(virStoragePoolObjPtr pool) {
|
||||
static int
|
||||
virStorageBackendFileSystemMount(virStoragePoolObjPtr pool) {
|
||||
char *src;
|
||||
char *options;
|
||||
char *options = NULL;
|
||||
const char **mntargv;
|
||||
|
||||
/* 'mount -t auto' doesn't seem to auto determine nfs (or cifs),
|
||||
|
Loading…
x
Reference in New Issue
Block a user