]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virStorageBackendFileSystemMount: placate clang
authorJim Meyering <meyering@redhat.com>
Wed, 14 Apr 2010 08:00:53 +0000 (10:00 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 14 Apr 2010 15:17:47 +0000 (17:17 +0200)
* src/storage/storage_backend_fs.c (virStorageBackendFileSystemMount):
Clang was not smart enough, and mistakenly reported that "options"
could be used uninitialized.  Initialize it.

src/storage/storage_backend_fs.c

index a83fc01cf75b8bb9133e20f15715187b315c18ae..0b81c6c0c24cfdcf20260cf22dc3f490630c48c6 100644 (file)
@@ -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),