Skip to content

Commit

Permalink
INI files are case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Feb 22, 2003
1 parent 8908faa commit c0e9bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/dba/libinifile/inifile.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ static int inifile_key_cmp(const key_type *k1, const key_type *k2 TSRMLS_DC)
{
assert(k1->group && k1->name && k2->group && k2->name);

if (!strcmp(k1->group, k2->group)) {
if (!strcmp(k1->name, k2->name)) {
if (!strcasecmp(k1->group, k2->group)) {
if (!strcasecmp(k1->name, k2->name)) {
return 0;
} else {
return 1;
Expand Down

0 comments on commit c0e9bd0

Please sign in to comment.