From: Jim Meyering Date: Wed, 14 Apr 2010 08:00:53 +0000 (+0200) Subject: virStorageBackendFileSystemMount: placate clang X-Git-Tag: v0.8.1~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cff81b147654c471d7a51510a6a82b6dc8185a5;p=thirdparty%2Flibvirt.git 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. --- diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c index a83fc01cf7..0b81c6c0c2 100644 --- a/src/storage/storage_backend_fs.c +++ b/src/storage/storage_backend_fs.c @@ -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),