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.
This commit is contained in:
Brian Behlendorf 2011-02-23 12:57:25 -08:00
parent a31a70bbd1
commit 718d77f622

View File

@ -3902,7 +3902,7 @@ parse_option(char *mntopt, unsigned long *mntflags, int sloppy)
{ {
const option_map_t *opt; const option_map_t *opt;
char *ptr, *name, *value = NULL; char *ptr, *name, *value = NULL;
int rc; int rc = 0;
name = strdup(mntopt); name = strdup(mntopt);
if (name == NULL) if (name == NULL)