From 76ead54bd39dc22a9fac4e99ea869a9b0e66d9ba Mon Sep 17 00:00:00 2001 From: Alex Snast Date: Sat, 19 Apr 2014 19:30:43 +0300 Subject: [PATCH] nfs-ls: Fix crash when called with no arguments When called with no argument we jump to 'finished' label after which nfs_destroy_url is called with *url having some garbage stack value. --- utils/nfs-ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfs-ls.c b/utils/nfs-ls.c index c680617..974a6e1 100644 --- a/utils/nfs-ls.c +++ b/utils/nfs-ls.c @@ -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 -- 2.34.1