From: Alex Snast Date: Sat, 19 Apr 2014 16:30:43 +0000 (+0300) Subject: nfs-ls: Fix crash when called with no arguments X-Git-Tag: upstream/1.9.6^2~39^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=76ead54bd39dc22a9fac4e99ea869a9b0e66d9ba;p=deb_libnfs.git 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. --- 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