Thread (5 messages) 5 messages, 2 authors, 2016-06-15

[PATCH 1/2] fast-import: initialize variable require_explicit_termination

STALE3763d

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:51:55
Subsystem: the rest · Maintainer: Linus Torvalds

The uninitialized variable seems harmless in practice, but let's still be clean.

Signed-off-by: Matthieu Moy <redacted>
---
For some reason, remote helpers seem to be forced to use the "done"
command now. Investing why, I found this, but that wasn't what I was
looking for.

 fast-import.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fast-import.c b/fast-import.c
index 7cc2262..ed8f3cd 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -355,7 +355,7 @@ static unsigned int cmd_save = 100;
 static uintmax_t next_mark;
 static struct strbuf new_data = STRBUF_INIT;
 static int seen_data_command;
-static int require_explicit_termination;
+static int require_explicit_termination = 0;
 
 /* Signal handling */
 static volatile sig_atomic_t checkpoint_requested;
-- 
1.7.6.585.g5929f.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