mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 13:51:27 +02:00
Do not accept values from sections following the specified section.
This commit is contained in:
parent
af129857c4
commit
eb9033ce95
@ -55,7 +55,6 @@ GetPrivateProfileString(char *theSection, /* section name */
|
|||||||
char *aString;
|
char *aString;
|
||||||
size_t aLineLength;
|
size_t aLineLength;
|
||||||
size_t aReturnLength = 0;
|
size_t aReturnLength = 0;
|
||||||
|
|
||||||
BOOL aSectionFound = FALSE;
|
BOOL aSectionFound = FALSE;
|
||||||
BOOL aKeyFound = FALSE;
|
BOOL aKeyFound = FALSE;
|
||||||
int j = 0;
|
int j = 0;
|
||||||
@ -151,9 +150,9 @@ GetPrivateProfileString(char *theSection, /* section name */
|
|||||||
/* accept as matched if NULL key or exact match */
|
/* accept as matched if NULL key or exact match */
|
||||||
|
|
||||||
if(!theSection || !strcmp(aStart, theSection))
|
if(!theSection || !strcmp(aStart, theSection))
|
||||||
{
|
|
||||||
aSectionFound = TRUE;
|
aSectionFound = TRUE;
|
||||||
}
|
else
|
||||||
|
aSectionFound = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user