diff options
author | Jim Jagielski <jim@apache.org> | 2017-01-09 23:08:01 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2017-01-09 23:08:01 +0100 |
commit | cc97ce3e52770d69c6de9aa7f2be85fae69509f7 (patch) | |
tree | 00a4531671abced6d59fd7e11952cf7d7683619f /modules/loggers | |
parent | Clarify wishlist (diff) | |
download | apache2-cc97ce3e52770d69c6de9aa7f2be85fae69509f7.tar.xz apache2-cc97ce3e52770d69c6de9aa7f2be85fae69509f7.zip |
https://bz.apache.org/bugzilla/show_bug.cgi?id=58855
Optimize check for empty strings
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1778067 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/loggers')
-rw-r--r-- | modules/loggers/mod_log_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/loggers/mod_log_config.c b/modules/loggers/mod_log_config.c index ebf3675343..6f9201d609 100644 --- a/modules/loggers/mod_log_config.c +++ b/modules/loggers/mod_log_config.c @@ -377,7 +377,7 @@ static const char *log_remote_user(request_rec *r, char *a) if (rvalue == NULL) { rvalue = "-"; } - else if (strlen(rvalue) == 0) { + else if (!*rvalue) { rvalue = "\"\""; } else { |