Fixed StrBuf initialization in PreparseArg().
This commit is contained in:
@@ -585,8 +585,7 @@ const char* MakeHexArg (unsigned Num)
|
|||||||
void PreparseArg (CodeEntry* E)
|
void PreparseArg (CodeEntry* E)
|
||||||
/* Parse the argument string and memorize the result for the code entry */
|
/* Parse the argument string and memorize the result for the code entry */
|
||||||
{
|
{
|
||||||
StrBuf B;
|
StrBuf B = AUTO_STRBUF_INITIALIZER;
|
||||||
SB_InitFromString (&B, xmalloc (strlen (E->Arg) + 1));
|
|
||||||
|
|
||||||
/* Parse the argument string */
|
/* Parse the argument string */
|
||||||
if (ParseOpcArgStr (E->Arg, &E->ArgInfo, &B, &E->ArgOff)) {
|
if (ParseOpcArgStr (E->Arg, &E->ArgInfo, &B, &E->ArgOff)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user