From: Jeff Trawick Date: Wed, 2 Dec 2009 17:36:46 +0000 (+0000) Subject: fix this: X-Git-Tag: 2.3.5~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6536e1e8c7329e7226aaa70c6d6583166b7db25d;p=apache fix this: util_mutex.c: In function ‘ap_set_mutex’: util_mutex.c:188: warning: comparison between pointer and integer util_mutex.c:174: warning: unused variable ‘type’ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@886214 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_mutex.c b/server/util_mutex.c index a3ea1d617c..7094ae2847 100644 --- a/server/util_mutex.c +++ b/server/util_mutex.c @@ -171,7 +171,6 @@ AP_DECLARE_NONSTD(const char *)ap_set_mutex(cmd_parms *cmd, void *dummy, apr_pool_t *p = cmd->pool; const char **elt; const char *mechdir; - const char *type; int no_mutex = 0, omit_pid = 0; apr_array_header_t *type_list; apr_lockmech_e mech; @@ -185,7 +184,7 @@ AP_DECLARE_NONSTD(const char *)ap_set_mutex(cmd_parms *cmd, void *dummy, } mechdir = ap_getword_conf(cmd->pool, &arg); - if (*mechdir == NULL) { + if (*mechdir == '\0') { return "Mutex requires at least a mechanism argument (" AP_ALL_AVAILABLE_MUTEXES_STRING ")"; }