From: Tom Lane Date: Sat, 10 Mar 2001 22:30:57 +0000 (+0000) Subject: Do not accept values from sections following the specified section. X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=75e7088d755e4e31f558612c108d39bf09d4ad1b;p=users%2Fbernd%2Fpostgres.git Do not accept values from sections following the specified section. --- diff --git a/src/interfaces/odbc/gpps.c b/src/interfaces/odbc/gpps.c index f14e95f2ce..dbcfe4925f 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;