Skip to content

Commit

Permalink
nfs-ls: Fix crash when called with no arguments
Browse files Browse the repository at this point in the history
When called with no argument we jump to 'finished' label
after which nfs_destroy_url is called with *url having
some garbage stack value.
  • Loading branch information
Alex Snast committed Apr 19, 2014
1 parent 548e2be commit 76ead54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/nfs-ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76ead54

Please sign in to comment.