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:
kichik 2003-08-05 15:30:31 +00:00
parent d5c0749312
commit 7093dc3b2d

View file

@ -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");