From 718d77f622463e1763c4f6d5cbfb7740d7e6968d Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 23 Feb 2011 12:57:25 -0800 Subject: [PATCH] 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. --- cmd/zfs/zfs_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 86f0d5c39f1c..f21c36b815f3 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)