[PATCH 10/11] revert: Give noop a default value while argument parsing
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
builtin/revert.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/builtin/revert.c b/builtin/revert.c
index 25969a5..0720721 100644
--- a/builtin/revert.c
+++ b/builtin/revert.c
@@ -112,7 +112,8 @@ static void parse_args(int argc, const char **argv)
{
const char * const * usage_str = revert_or_cherry_pick_usage();
const char *me;
- int noop;
+ int noop = 0;
+
struct option options[] = {
OPT_BOOLEAN(0, "abort", &cmd_opts.abort_oper, "abort the current operation"),
OPT_BOOLEAN(0, "skip", &cmd_opts.skip_oper, "skip the current commit"),
--
1.7.4.rc1.7.g2cf08.dirty