diff options
Diffstat (limited to 'fast-import.c')
-rw-r--r-- | fast-import.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fast-import.c b/fast-import.c index 5085fbf11..2d5224c18 100644 --- a/fast-import.c +++ b/fast-import.c @@ -442,16 +442,18 @@ static void write_crash_report(const char *err, va_list params) static NORETURN void die_nicely(const char *err, va_list params) { static int zombie; + va_list x_params; + va_copy(x_params, params); fputs("fatal: ", stderr); vfprintf(stderr, err, params); fputc('\n', stderr); if (!zombie) { zombie = 1; - write_crash_report(err, params); + write_crash_report(err, x_params); } - + va_end(x_params); exit(128); } @@ -1618,7 +1620,7 @@ static void read_next_command(void) } while (command_buf.buf[0] == '#'); } -static void skip_optional_lf() +static void skip_optional_lf(void) { int term_char = fgetc(stdin); if (term_char != '\n' && term_char != EOF) |