mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Fixed StrBuf initialization in PreparseArg().
This commit is contained in:
parent
fd208fdf0b
commit
a85d5330fa
@ -585,8 +585,7 @@ const char* MakeHexArg (unsigned Num)
|
||||
void PreparseArg (CodeEntry* E)
|
||||
/* Parse the argument string and memorize the result for the code entry */
|
||||
{
|
||||
StrBuf B;
|
||||
SB_InitFromString (&B, xmalloc (strlen (E->Arg) + 1));
|
||||
StrBuf B = AUTO_STRBUF_INITIALIZER;
|
||||
|
||||
/* Parse the argument string */
|
||||
if (ParseOpcArgStr (E->Arg, &E->ArgInfo, &B, &E->ArgOff)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user