No need to read STATE twice
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2789 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d5c0749312
commit
7093dc3b2d
1 changed files with 2 additions and 4 deletions
|
@ -543,11 +543,9 @@ int ReadSettings(void) {
|
|||
ConvertNewLines(pFields[nIdx].pszText);
|
||||
}
|
||||
|
||||
// pszState cannot be NULL (?)
|
||||
// pszState must not be NULL!
|
||||
myGetProfileString(szField, "STATE");
|
||||
pFields[nIdx].pszState = myGetProfileStringDup(szField, "STATE");
|
||||
if (!pFields[nIdx].pszState)
|
||||
pFields[nIdx].pszState = STRDUP(szResult);
|
||||
pFields[nIdx].pszState = strdup(szResult);
|
||||
|
||||
pFields[nIdx].pszRoot = myGetProfileStringDup(szField, "ROOT");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue