diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-03-10 22:30:57 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-03-10 22:30:57 +0000 |
commit | eb9033ce95008d186fddd1a2a329f27ba0d56813 (patch) | |
tree | 6301caf52d415bd61cdf24801f54d6643581343c | |
parent | af129857c4893c3305a53217a8d69a58047d2c9d (diff) |
Do not accept values from sections following the specified section.
-rw-r--r-- | src/interfaces/odbc/gpps.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interfaces/odbc/gpps.c b/src/interfaces/odbc/gpps.c index f14e95f2ce4..dbcfe4925f6 100644 --- a/src/interfaces/odbc/gpps.c +++ b/src/interfaces/odbc/gpps.c @@ -55,7 +55,6 @@ GetPrivateProfileString(char *theSection, /* section name */ char *aString; size_t aLineLength; size_t aReturnLength = 0; - BOOL aSectionFound = FALSE; BOOL aKeyFound = FALSE; int j = 0; @@ -151,9 +150,9 @@ GetPrivateProfileString(char *theSection, /* section name */ /* accept as matched if NULL key or exact match */ if(!theSection || !strcmp(aStart, theSection)) - { aSectionFound = TRUE; - } + else + aSectionFound = FALSE; } break; |