]> granicus.if.org Git - apache/commitdiff
* modules/cache/mod_socache_shmcb.c (socache_shmcb_init): Describe
authorJoe Orton <jorton@apache.org>
Fri, 3 May 2019 09:07:32 +0000 (09:07 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 3 May 2019 09:07:32 +0000 (09:07 +0000)
  error better for anon shm failure case, fixing gcc 9 warning on
  passing NULL for '%s'.

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

modules/cache/mod_socache_shmcb.c

index cb98dfa2368c0c8138c4055999d0db2d2812c8be..d6be870f12050569201f7f977a41ddb925e43b21 100644 (file)
@@ -368,8 +368,8 @@ static apr_status_t socache_shmcb_init(ap_socache_instance_t *ctx,
          * above will return NULL for invalid paths. */
         if (ctx->data_file == NULL) {
             ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(00818)
-                         "Could not use default path '%s' for shmcb socache",
-                         ctx->data_file);
+                         "Could not use anonymous shm for '%s' cache",
+                         namespace);
             return APR_EINVAL;
         }