the shm segment by name if a name is configured.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@227012
13f79535-47bb-0310-9956-
ffa450edef68
apr_status_t result;
apr_size_t size;
- /* Remove any existing shm segment with this name. */
- apr_shm_remove(st->cache_file, st->pool);
+ if (st->cache_file) {
+ /* Remove any existing shm segment with this name. */
+ apr_shm_remove(st->cache_file, st->pool);
+ }
size = APR_ALIGN_DEFAULT(st->cache_bytes);