com php-src: Fix inifile.c:419:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Please check this minor change.:
ext/dba/libinifile/inifile.c
| From: | Remi Collet | Date: | Mon, 03 Dec 2012 12:38:12 +0000 |
| Subject: | com php-src: Fix inifile.c:419:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Please check this minor change.: ext/dba/libinifile/inifile.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70644@lists.php.net to get a copy of this message | ||
Commit: e3aad69cccfed957f1ba01a0083aac2fb7174338
Author: Remi Collet <remi@php.net> Mon, 3 Dec 2012 13:38:12 +0100
Parents: 869e6508b3489f25c78d51ef335edda0b052e135
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e3aad69cccfed957f1ba01a0083aac2fb7174338
Log:
Fix inifile.c:419:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
Please check this minor change.
Avoid, warning: 'pos_grp_start' may be used uninitialized in this function
[-Wmaybe-uninitialized]
Changed paths:
M ext/dba/libinifile/inifile.c
Diff:
diff --git a/ext/dba/libinifile/inifile.c b/ext/dba/libinifile/inifile.c
index a0c7c69..b94c49b 100644
--- a/ext/dba/libinifile/inifile.c
+++ b/ext/dba/libinifile/inifile.c
@@ -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;