summaryrefslogtreecommitdiff
path: root/modules/md
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2022-03-16 08:28:27 +0000
committerStefan Eissing <icing@apache.org>2022-03-16 08:28:27 +0000
commite76422db42887e2abc8eeff123d0af8ed41bc9d6 (patch)
tree69ba931383b377f99ac9044786c084f54568208a /modules/md
parent6608451ae47c10e144d7ff9b3e1097db50fa37ee (diff)
downloadhttpd-e76422db42887e2abc8eeff123d0af8ed41bc9d6.tar.gz
*) mod_md: fix compiler warning about NULL arg to a %s log. Fixes PR 65955.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898962 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/md')
-rw-r--r--modules/md/md_store_fs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/md/md_store_fs.c b/modules/md/md_store_fs.c
index ab43054ce5..c2a4a4e493 100644
--- a/modules/md/md_store_fs.c
+++ b/modules/md/md_store_fs.c
@@ -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;
}