Fix option -q; commit d3a70a2 completely broke it; fixes issue #223

This commit is contained in:
Bert Münnich 2015-12-28 17:00:21 +01:00
parent f75fa78eca
commit 53a72c7b65
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,4 @@
VERSION := git-20151226 VERSION := git-20151228
PREFIX := /usr/local PREFIX := /usr/local
MANPREFIX := $(PREFIX)/share/man MANPREFIX := $(PREFIX)/share/man

3
util.c
View file

@ -62,6 +62,9 @@ void error(int eval, int err, const char* fmt, ...)
{ {
va_list ap; va_list ap;
if (eval == 0 && options->quiet)
return;
fflush(stdout); fflush(stdout);
fprintf(stderr, "%s: ", progname); fprintf(stderr, "%s: ", progname);
va_start(ap, fmt); va_start(ap, fmt);