From e1bbe6ff1b03213f1ba3e13b4ab3607adb010933 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 5 Jun 2003 21:55:40 +0000 Subject: [PATCH] initialize and destroy git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2615 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/build.cpp | 4 ++++ Source/script.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Source/build.cpp b/Source/build.cpp index 902642c8..08373b70 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -27,6 +27,10 @@ CEXEBuild::~CEXEBuild() CEXEBuild::CEXEBuild() { + linecnt = 0; + fp = 0; + curfilename = 0; + display_info=1; display_script=1; display_errors=1; diff --git a/Source/script.cpp b/Source/script.cpp index d3fbedb8..3d562562 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -37,6 +37,10 @@ int CEXEBuild::process_script(FILE *filepointer, char *filename) return PS_ERROR; } int ret=parseScript(); + + fp = 0; + curfilename = 0; + if (ret == PS_ENDIF) ERROR_MSG("!endif: stray !endif\n"); if (IS_PS_ELSE(ret)) ERROR_MSG("!else: stray !else\n"); if (m_linebuild.getlen())