From 6536e1e8c7329e7226aaa70c6d6583166b7db25d Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 2 Dec 2009 17:36:46 +0000 Subject: [PATCH] =?utf8?q?fix=20this:=20util=5Fmutex.c:=20In=20function=20?= =?utf8?q?=E2=80=98ap=5Fset=5Fmutex=E2=80=99:=20util=5Fmutex.c:188:=20warn?= =?utf8?q?ing:=20comparison=20between=20pointer=20and=20integer=20util=5Fm?= =?utf8?q?utex.c:174:=20warning:=20unused=20variable=20=E2=80=98type?= =?utf8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@886214 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_mutex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ")"; } -- 2.50.1