summaryrefslogtreecommitdiff
path: root/ext/dba
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2013-08-14 20:36:50 -0700
committerChristopher Jones <sixd@php.net>2013-08-14 20:36:50 -0700
commit9ad97cd48903ea5454853960f2c14de326e0f624 (patch)
tree9607bef3020deb8da37bacdb1c14624f4b5d1d2f /ext/dba
parent9d62807190ebda858acbb09ad832c96570a97c40 (diff)
downloadphp-git-9ad97cd48903ea5454853960f2c14de326e0f624.tar.gz
Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
Diffstat (limited to 'ext/dba')
-rw-r--r--ext/dba/dba.c1
-rw-r--r--ext/dba/libinifile/inifile.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c
index 5295ab3673..8005101de3 100644
--- a/ext/dba/dba.c
+++ b/ext/dba/dba.c
@@ -538,7 +538,6 @@ PHP_MINFO_FUNCTION(dba)
*/
static void php_dba_update(INTERNAL_FUNCTION_PARAMETERS, int mode)
{
- char *v;
int val_len;
zval *id;
dba_info *info = NULL;
diff --git a/ext/dba/libinifile/inifile.c b/ext/dba/libinifile/inifile.c
index 89373b1e33..3cd97702b3 100644
--- a/ext/dba/libinifile/inifile.c
+++ b/ext/dba/libinifile/inifile.c
@@ -460,7 +460,7 @@ static int inifile_filter(inifile *dba, inifile *from, const key_type *key TSRML
*/
static int inifile_delete_replace_append(inifile *dba, const key_type *key, const val_type *value, int append TSRMLS_DC)
{
- size_t pos_grp_start, pos_grp_next;
+ size_t pos_grp_start = 0, pos_grp_next;
inifile *ini_tmp = NULL;
php_stream *fp_tmp = NULL;
int ret;