summaryrefslogtreecommitdiffstats
path: root/modules/loggers
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2017-01-09 23:08:01 +0100
committerJim Jagielski <jim@apache.org>2017-01-09 23:08:01 +0100
commitcc97ce3e52770d69c6de9aa7f2be85fae69509f7 (patch)
tree00a4531671abced6d59fd7e11952cf7d7683619f /modules/loggers
parentClarify wishlist (diff)
downloadapache2-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.c2
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 {