Thread (35 messages) flat view 35 messages, 5 authors, 2016-06-15
STALE3748d

Revision rfc of 3 in this series.

Revisions (3)
  1. rfc current
  2. v3 [diff vs current]
  3. v4 [diff vs current]

[PATCH 10/11] revert: Give noop a default value while argument parsing

From: Ramkumar Ramachandra <hidden>
Date: 2016-06-15 22:51:01
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Ramkumar Ramachandra <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help