summaryrefslogtreecommitdiff
path: root/ext/sysvshm
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:39:15 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:39:15 +0000
commit1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90 (patch)
treea88868e69d5ac42e21eaf918d6ba059220014f43 /ext/sysvshm
parentb2bc40f70c2e02c7fe81207e48f73b401946e8ae (diff)
downloadphp-git-1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90.tar.gz
MFH: initialize optional vars
Diffstat (limited to 'ext/sysvshm')
-rw-r--r--ext/sysvshm/sysvshm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sysvshm/sysvshm.c b/ext/sysvshm/sysvshm.c
index ebe364080d..5733ebe64e 100644
--- a/ext/sysvshm/sysvshm.c
+++ b/ext/sysvshm/sysvshm.c
@@ -145,8 +145,8 @@ PHP_MINIT_FUNCTION(sysvshm)
Creates or open a shared memory segment */
PHP_FUNCTION(shm_attach)
{
- long arg_key, arg_size, arg_flag;
- long shm_size, shm_flag;
+ long arg_key, arg_size, arg_flag = 0;
+ long shm_size = 0, shm_flag;
sysvshm_shm *shm_list_ptr;
char *shm_ptr;
sysvshm_chunk_head *chunk_ptr;