X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=src%2Fcoloredstderr.c;h=e6f1f6aab30999a2ecb55b017dfe4ae171658e95;hp=4664f0d1a8d0efb033fb11bf28814fc4a730d12c;hb=73a6c78e7bec467ac73a70f00c03e72ab47665bb;hpb=f0803b054591c64fc7231a152d7c27c1646eaf3a diff --git a/src/coloredstderr.c b/src/coloredstderr.c index 4664f0d..e6f1f6a 100644 --- a/src/coloredstderr.c +++ b/src/coloredstderr.c @@ -193,7 +193,7 @@ static void handle_fd_pre(int fd) { int saved_errno = errno; - if (unlikely(!pre_string || !post_string)) { + if (unlikely(!pre_string)) { init_pre_post_string(); } @@ -222,7 +222,7 @@ static void handle_file_pre(FILE *stream) { int saved_errno = errno; - if (unlikely(!pre_string || !post_string)) { + if (unlikely(!pre_string)) { init_pre_post_string(); }