nfs-ls: Fix crash when called with no arguments
[deb_libnfs.git] / 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