Skip to content

Commit

Permalink
Clarify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuraski committed Mar 14, 2005
1 parent 6e6a1f0 commit 1dbc47c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Zend/zend_ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,10 @@ ZEND_API ZEND_INI_MH(OnUpdateBool)

p = (zend_bool *) (base+(size_t) mh_arg1);

if (strncasecmp("on", new_value, sizeof("on"))) {
*p = (zend_bool) atoi(new_value);
} else {
if (new_value_length==2 && strcasecmp("on", new_value)==0) {
*p = (zend_bool) 1;
} else {
*p = (zend_bool) atoi(new_value);
}
return SUCCESS;
}
Expand Down

0 comments on commit 1dbc47c

Please sign in to comment.