Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit eb9033c

Browse files
committed
Do not accept values from sections following the specified section.
1 parent af12985 commit eb9033c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/interfaces/odbc/gpps.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ GetPrivateProfileString(char *theSection, /* section name */
5555
char *aString;
5656
size_t aLineLength;
5757
size_t aReturnLength = 0;
58-
5958
BOOL aSectionFound = FALSE;
6059
BOOL aKeyFound = FALSE;
6160
int j = 0;
@@ -151,9 +150,9 @@ GetPrivateProfileString(char *theSection, /* section name */
151150
/* accept as matched if NULL key or exact match */
152151

153152
if(!theSection || !strcmp(aStart, theSection))
154-
{
155153
aSectionFound = TRUE;
156-
}
154+
else
155+
aSectionFound = FALSE;
157156
}
158157

159158
break;

0 commit comments

Comments
 (0)