X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=src%2Fcoloredstderr.c;fp=src%2Fcoloredstderr.c;h=2970a1eb95170558dd2cbbb8c647f4766a2b3c58;hp=e6f1f6aab30999a2ecb55b017dfe4ae171658e95;hb=39d313d1d474dbe025270b9555a5dfb03286c8c9;hpb=ba93304c54307da16900993f94b4743978a3257d diff --git a/src/coloredstderr.c b/src/coloredstderr.c index e6f1f6a..2970a1e 100644 --- a/src/coloredstderr.c +++ b/src/coloredstderr.c @@ -371,7 +371,7 @@ static void error_vararg(int status, int errnum, if (error_one_per_line && filename != NULL && linenum != 0 && filename == last_filename && linenum == last_linenum) { - return; + goto out; } last_filename = filename; last_linenum = linenum; @@ -404,6 +404,7 @@ static void error_vararg(int status, int errnum, fprintf(stderr, "\n"); +out: if (status != 0) { exit(status); }