]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) mod_md: fix compiler warning about NULL arg to a %s log. Fixes PR 65955.
authorStefan Eissing <icing@apache.org>
Wed, 16 Mar 2022 08:28:27 +0000 (08:28 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 16 Mar 2022 08:28:27 +0000 (08:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898962 13f79535-47bb-0310-9956-ffa450edef68

modules/md/md_store_fs.c

index ab43054ce58a0e4c9e3527f6673ddc7aa2e7c351..c2a4a4e49300bdcf1f6e67bf5863a905f138db1c 100644 (file)
@@ -503,6 +503,7 @@ static apr_status_t mk_group_dir(const char **pdir, md_store_fs_t *s_fs,
     
     perms = gperms(s_fs, group);
 
+    *pdir = NULL;
     rv = fs_get_dname(pdir, &s_fs->s, group, name, p);
     if ((APR_SUCCESS != rv) || (MD_SG_NONE == group)) goto cleanup;
 
@@ -521,7 +522,8 @@ static apr_status_t mk_group_dir(const char **pdir, md_store_fs_t *s_fs,
     }
 cleanup:
     if (APR_SUCCESS != rv) {
-        md_log_perror(MD_LOG_MARK, MD_LOG_ERR, rv, p, "mk_group_dir %d %s", group, name);
+        md_log_perror(MD_LOG_MARK, MD_LOG_ERR, rv, p, "mk_group_dir %d %s",
+            group, (*pdir? *pdir : (name? name : "(null)")));
     }
     return rv;
 }