diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2008-10-21 23:39:15 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2008-10-21 23:39:15 +0000 |
commit | 1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90 (patch) | |
tree | a88868e69d5ac42e21eaf918d6ba059220014f43 /ext/sysvshm | |
parent | b2bc40f70c2e02c7fe81207e48f73b401946e8ae (diff) | |
download | php-git-1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90.tar.gz |
MFH: initialize optional vars
Diffstat (limited to 'ext/sysvshm')
-rw-r--r-- | ext/sysvshm/sysvshm.c | 4 |
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; |