From: cuz Date: Fri, 27 Jun 2003 15:46:20 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~1492 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=76d26ae0a90b818b609f3a727b44a475b3c520fe;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2227 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/macro.c b/src/ca65/macro.c index f8196c223..9a249cdec 100644 --- a/src/ca65/macro.c +++ b/src/ca65/macro.c @@ -95,7 +95,7 @@ static Macro* MacroRoot = 0; /* List of all macros */ typedef struct MacExp_ MacExp; struct MacExp_ { MacExp* Next; /* Pointer to next expansion */ - Macro* M; /* Which macro do we expand? */ + Macro* M; /* Which macro do we expand? */ unsigned IfSP; /* .IF stack pointer at start of expansion */ TokNode* Exp; /* Pointer to current token */ TokNode* Final; /* Pointer to final token */ @@ -149,6 +149,7 @@ static Macro* NewMacro (const char* Name, unsigned HashVal, unsigned char Style) /* Initialize the macro struct */ M->LocalCount = 0; + M->Locals = 0; M->ParamCount = 0; M->Params = 0; M->TokCount = 0;