Skip to content

Commit c85d46a

Browse files
committed
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
1 parent 3853dde commit c85d46a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/util_mutex.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ AP_DECLARE_NONSTD(const char *)ap_set_mutex(cmd_parms *cmd, void *dummy,
171171
apr_pool_t *p = cmd->pool;
172172
const char **elt;
173173
const char *mechdir;
174-
const char *type;
175174
int no_mutex = 0, omit_pid = 0;
176175
apr_array_header_t *type_list;
177176
apr_lockmech_e mech;
@@ -185,7 +184,7 @@ AP_DECLARE_NONSTD(const char *)ap_set_mutex(cmd_parms *cmd, void *dummy,
185184
}
186185

187186
mechdir = ap_getword_conf(cmd->pool, &arg);
188-
if (*mechdir == NULL) {
187+
if (*mechdir == '\0') {
189188
return "Mutex requires at least a mechanism argument ("
190189
AP_ALL_AVAILABLE_MUTEXES_STRING ")";
191190
}

0 commit comments

Comments
 (0)