An error detect question in comments

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@811009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2009-09-03 16:02:18 +00:00
parent c7c6f204d1
commit c0fb865ba1

View File

@ -153,6 +153,7 @@ static void store_slotmem(ap_slotmem_instance_t *slotmem)
apr_file_close(fp);
}
/* should be apr_status_t really */
static void restore_slotmem(void *ptr, const char *name, apr_size_t size,
apr_pool_t *pool)
{
@ -318,6 +319,10 @@ static apr_status_t slotmem_create(ap_slotmem_instance_t **new,
memcpy(ptr, &desc, sizeof(desc));
ptr = ptr + sizeof(desc);
memset(ptr, 0, dsize);
/*
* TODO: Error check the below... What error makes
* sense if the restore fails? Any?
*/
if (type & AP_SLOTMEM_TYPE_PERSIST)
restore_slotmem(ptr, fname, dsize, pool);
}