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
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;
}
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 ")";
}