Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e3aad69cccfed957f1ba01a0083aac2fb7174338 1 parent 869e650
@remicollet remicollet authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/dba/libinifile/inifile.c
View
4 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;
Please sign in to comment.
Something went wrong with that request. Please try again.