mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-10 00:48:33 +01:00
Remove unnecessary check in handle_*_pre().
init_pre_post_string() sets both pre_string and post_string, so checking only one suffices.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user