Skip to content
Browse files

Fix inifile.c:419:6: warning: variable 'ret' set but not used [-Wunus…

…ed-but-set-variable]

Please check this minor change.

Avoid, warning: 'pos_grp_start' may be used uninitialized in this function [-Wmaybe-uninitialized]
  • Loading branch information...
1 parent 869e650 commit e3aad69cccfed957f1ba01a0083aac2fb7174338 @remicollet remicollet committed Dec 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/dba/libinifile/inifile.c
View
4 ext/dba/libinifile/inifile.c
@@ -452,15 +452,15 @@ static int inifile_filter(inifile *dba, inifile *from, const key_type *key TSRML
}
}
inifile_line_free(&ln);
- return SUCCESS;
+ return ret;
}
/* }}} */
/* {{{ inifile_delete_replace_append
*/
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;

0 comments on commit e3aad69

Please sign in to comment.
Something went wrong with that request. Please try again.