From f6800c805260a252f9328b29d84eb78de043b09b Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 12 Dec 2008 17:13:43 +0000 Subject: [PATCH] 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 --- Contrib/ExDLL/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contrib/ExDLL/plugin.c b/Contrib/ExDLL/plugin.c index 945aa166..ef60de6a 100644 --- a/Contrib/ExDLL/plugin.c +++ b/Contrib/ExDLL/plugin.c @@ -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;