diff options
author | ronald <ronald@13f79535-47bb-0310-9956-ffa450edef68> | 2000-05-29 09:02:52 +0000 |
---|---|---|
committer | ronald <ronald@13f79535-47bb-0310-9956-ffa450edef68> | 2000-05-29 09:02:52 +0000 |
commit | 602370d4a03bcb4e3d4b1fa4e712ba392e342551 (patch) | |
tree | 766135d91fdcaeaecdd2415889386b033f079137 /shmem | |
parent | 43e782f12bfca274304763066aca53211805cd94 (diff) | |
download | libapr-602370d4a03bcb4e3d4b1fa4e712ba392e342551.tar.gz |
The name is supposed to be set to NULL when anonymous shared mem is used.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60117 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r-- | shmem/os2/shmem.c | 1 | ||||
-rw-r--r-- | shmem/unix/shmem.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/shmem/os2/shmem.c b/shmem/os2/shmem.c index 364f19415..87536e546 100644 --- a/shmem/os2/shmem.c +++ b/shmem/os2/shmem.c @@ -124,6 +124,7 @@ ap_status_t ap_shm_free(struct shmem_t *m, void *entity) ap_status_t ap_get_shm_name(ap_shmem_t *c, ap_shm_name_t **name) { + *name = NULL; return APR_ANONYMOUS; } diff --git a/shmem/unix/shmem.c b/shmem/unix/shmem.c index c728f5501..726a171fe 100644 --- a/shmem/unix/shmem.c +++ b/shmem/unix/shmem.c @@ -103,7 +103,7 @@ ap_status_t ap_shm_free(struct shmem_t *shared, void *entity) ap_status_t ap_get_shm_name(ap_shmem_t *c, ap_shm_name_t **name) { #if APR_USES_ANONYMOUS_SHM - name = NULL; + *name = NULL; return APR_ANONYMOUS; /* Currently, we are not supporting name based shared memory on Unix * systems. This may change in the future however, so I will leave |