]> granicus.if.org Git - apache/commitdiff
fix this:
authorJeff Trawick <trawick@apache.org>
Wed, 2 Dec 2009 17:36:46 +0000 (17:36 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 2 Dec 2009 17:36:46 +0000 (17:36 +0000)
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

server/util_mutex.c

index a3ea1d617c5adbab07dafe65c3f83d2c5d1c1279..7094ae28475079dc99216d855c9ab5a3a9687a72 100644 (file)
@@ -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 ")";
     }