X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=src%2Fdebug.h;h=1a45c0f993b5a402fe69ba4e5fd044d4742fa6b7;hp=4dab03c3407600fad3556e498ca921ddf33a370d;hb=5af5f0faa243da42e04028c1f723fe899d24444d;hpb=7f9856c5dace35f8efe5a20ee1013815e67b9550 diff --git a/src/debug.h b/src/debug.h index 4dab03c..1a45c0f 100644 --- a/src/debug.h +++ b/src/debug.h @@ -26,8 +26,9 @@ static void debug(const char *format, ...) { /* If the file doesn't exist, do nothing. Prevents writing log files in * unexpected places. The user must create the file manually. */ int fd = open(DEBUG_FILE, O_WRONLY | O_APPEND); - if (fd == -1) + if (fd == -1) { return; + } va_list ap; va_start(ap, format);