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:
Simon Ruderich
2013-09-15 00:10:45 +02:00
parent f0803b0545
commit 73a6c78e7b

View File

@@ -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();
}