Skip to content

Commit 28f28c0

Browse files
committed
fixup! built-in add -p: offer a helpful error message when hunk navigation failed
Just an obvious fix for an obvious varargs mistake. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 65f1570 commit 28f28c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

add-patch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ static void err(struct add_p_state *s, const char *fmt, ...)
218218
vfprintf(stderr, fmt, args);
219219
fputs(s->s.reset_color, stderr);
220220
fputc('\n', stderr);
221+
va_end(args);
221222
}
222223

223224
static void setup_child_process(struct child_process *cp,

0 commit comments

Comments
 (0)