Merge pull request #74 from alexsn/master
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 19 Apr 2014 18:38:11 +0000 (11:38 -0700)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 19 Apr 2014 18:38:11 +0000 (11:38 -0700)
nfs-ls: Fix crash when called with no arguments

utils/nfs-ls.c

index c680617effc5e1ee640b96cea114f1c56f70e2dd..974a6e16ec32fca2414d45cf43e0301293816e59 100644 (file)
@@ -172,7 +172,7 @@ int main(int argc, char *argv[])
        uint64_t offset;
        struct client client;
        struct statvfs stvfs;
-       struct nfs_url *url;
+       struct nfs_url *url = NULL;
        exports export, tmp;
 
 #ifdef WIN32