]> granicus.if.org Git - apache/commitdiff
Fix a potential compiler warning about uninitialized variable.
authorChristophe Jaillet <jailletc36@apache.org>
Mon, 26 Mar 2018 19:58:46 +0000 (19:58 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Mon, 26 Mar 2018 19:58:46 +0000 (19:58 +0000)
PR 59821

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827783 13f79535-47bb-0310-9956-ffa450edef68

server/util_mutex.c

index fedd0332a59b30a00873ed7b2bb29056c6f8fe2f..6c5fea1218eadcd8242e8a482390ba217c9f2cdc 100644 (file)
@@ -505,7 +505,7 @@ AP_CORE_DECLARE(void) ap_dump_mutexes(apr_pool_t *p, server_rec *s, apr_file_t *
     for (idx = apr_hash_first(p, mxcfg_by_type); idx; idx = apr_hash_next(idx))
     {
         mutex_cfg_t *mxcfg;
-        const char *name, *mech;
+        const char *name, *mech = "<unknown>";
         const void *name_;
         const char *dir = "";
         apr_hash_this(idx, &name_, NULL, NULL);