allow passing NULL to popstring() for InstallOptions and probably more plug-ins

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5831 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-12-12 17:13:43 +00:00
parent 1f02b6128e
commit f6800c8052

View file

@ -12,7 +12,7 @@ int NSISCALL popstring(char *str)
stack_t *th;
if (!g_stacktop || !*g_stacktop) return 1;
th=(*g_stacktop);
lstrcpyA(str,th->text);
if (str) lstrcpyA(str,th->text);
*g_stacktop = th->next;
GlobalFree((HGLOBAL)th);
return 0;