pszState can't be null (thanks Case for the patch)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2782 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-08-03 22:04:31 +00:00
parent 1845d6a828
commit 1478517f26
2 changed files with 2 additions and 1 deletions

View file

@ -547,7 +547,8 @@ bool ReadSettings(void) {
// pszState cannot be NULL (?)
myGetProfileString(szField, "STATE");
pFields[nIdx].pszState = myGetProfileStringDup(szField, "STATE");
//pFields[nIdx].pszState = STRDUP(szResult);
if (!pFields[nIdx].pszState)
pFields[nIdx].pszState = STRDUP(szResult);
pFields[nIdx].pszRoot = myGetProfileStringDup(szField, "ROOT");