Commit cfac5975 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

metaflac : Exit with error if invalid option is passed.

Fix from Joshua Kwan <joshk@triplehelix.org> via Debian.
Closes Debian bug #329979.
parent e2f80c17
......@@ -37,7 +37,7 @@ int main(int argc, char *argv[])
setlocale(LC_ALL, "");
init_options(&options);
if(parse_options(argc, argv, &options))
if ((ret = parse_options(argc, argv, &options)) == 0)
ret = !do_operations(&options);
else
ret = 1;
......
......@@ -249,7 +249,7 @@ FLAC__bool parse_options(int argc, char *argv[], CommandLineOptions *options)
}
}
return !had_error;
return had_error;
}
void free_options(CommandLineOptions *options)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment