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:
parent
1f02b6128e
commit
f6800c8052
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue