]> granicus.if.org Git - php/commitdiff
Fix inifile.c:419:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
authorRemi Collet <remi@php.net>
Mon, 3 Dec 2012 12:38:12 +0000 (13:38 +0100)
committerRemi Collet <remi@php.net>
Mon, 3 Dec 2012 12:38:12 +0000 (13:38 +0100)
Please check this minor change.

Avoid, warning: 'pos_grp_start' may be used uninitialized in this function [-Wmaybe-uninitialized]

ext/dba/libinifile/inifile.c

index a0c7c69e58d93d055e213c520bb5c02e5d9dc7cd..b94c49b61d3813e86a95beb59930d802849a16c6 100644 (file)
@@ -452,7 +452,7 @@ static int inifile_filter(inifile *dba, inifile *from, const key_type *key TSRML
                }
        }
        inifile_line_free(&ln);
-       return SUCCESS;
+       return ret;
 }
 /* }}} */
 
@@ -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;