diff options
author | Brian Behlendorf <[email protected]> | 2011-02-23 12:57:25 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-02-23 12:57:25 -0800 |
commit | 718d77f622463e1763c4f6d5cbfb7740d7e6968d (patch) | |
tree | 05bc14c2dc1babb693e9e4f13f582b045d323322 /cmd/zfs | |
parent | a31a70bbd1c3d6b27a68280e53103c5b9a8ebd65 (diff) |
Fix uninitialized variable
It was possible for rc to be unitialized in the parse_options()
function which triggered a compiler warning. Ensure rc is always
initialized.
Diffstat (limited to 'cmd/zfs')
-rw-r--r-- | cmd/zfs/zfs_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 86f0d5c39..f21c36b81 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -3902,7 +3902,7 @@ parse_option(char *mntopt, unsigned long *mntflags, int sloppy) { const option_map_t *opt; char *ptr, *name, *value = NULL; - int rc; + int rc = 0; name = strdup(mntopt); if (name == NULL) |