a string can't be used as the declined value since the hook macro must compare
retcodes from hooks with that declined value
(thanks, gcc/Joe)
accommodate in ap_show_mpm() since we don't want to return NULL to the caller of
this simple API
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758406
13f79535-47bb-0310-9956-
ffa450edef68
(t, cbfn, baton), APR_ENOTIMPL)
AP_IMPLEMENT_HOOK_RUN_FIRST(const char *, mpm_get_name,
(void),
- (), "")
+ (), NULL)
/* number of calls to wait_or_timeout between writable probes */
#ifndef INTERVAL_OF_WRITABLE_PROBES
AP_DECLARE(const char *)ap_show_mpm(void)
{
- return ap_run_mpm_get_name();
+ const char *name = ap_run_mpm_get_name();
+
+ if (!name) {
+ name = "";
+ }
+
+ return name;
}