]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed a warning from exportfs.c
authorSteve Dickson <steved@redhat.com>
Wed, 6 Apr 2011 14:39:10 +0000 (10:39 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 6 Apr 2011 14:39:10 +0000 (10:39 -0400)
exportfs.c:280:29: warning: 'exp' may be used uninitialized in this function

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/exportfs/exportfs.c

index 26d0504ee9e57afb4f8ecfdbd78ddfbfcfd29f61..b107c7c9e0d856c1f3678cf4faa70879ce79929f 100644 (file)
@@ -250,7 +250,7 @@ static void
 exportfs(char *arg, char *options, int verbose)
 {
        struct exportent *eep;
-       nfs_export      *exp;
+       nfs_export      *exp = NULL;
        struct addrinfo *ai = NULL;
        char            *path;
        char            *hname = arg;