diff options
Diffstat (limited to 'src/base/cmd')
| -rw-r--r-- | src/base/cmd/cmdUtils.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/base/cmd/cmdUtils.c b/src/base/cmd/cmdUtils.c index d86ecf7e..4140680e 100644 --- a/src/base/cmd/cmdUtils.c +++ b/src/base/cmd/cmdUtils.c @@ -603,9 +603,10 @@ void CmdCommandPrint( Abc_Frame_t * pAbc, int fPrintAll, int fDetails )                  fprintf( pAbc->Out, "\n" );                  for ( j = iGroupStart; j < i; j++ )                  { +                    char *tmp_cmd;                      fprintf( pAbc->Out, "\n" );                      // fprintf( pAbc->Out, "--- %s ---\n", ppCommands[j]->sName ); -                    char *tmp_cmd = ABC_ALLOC(char, strlen(ppCommands[j]->sName)+4); +                    tmp_cmd = ABC_ALLOC(char, strlen(ppCommands[j]->sName)+4);                      (void) sprintf(tmp_cmd, "%s -h", ppCommands[j]->sName);                      (void) Cmd_CommandExecute( pAbc, tmp_cmd );                      ABC_FREE(tmp_cmd); @@ -629,9 +630,10 @@ void CmdCommandPrint( Abc_Frame_t * pAbc, int fPrintAll, int fDetails )          fprintf( pAbc->Out, "\n" );          for ( j = iGroupStart; j < i; j++ )          { +            char *tmp_cmd;              fprintf( pAbc->Out, "\n" );              // fprintf( pAbc->Out, "--- %s ---\n", ppCommands[j]->sName ); -            char *tmp_cmd = ABC_ALLOC(char, strlen(ppCommands[j]->sName)+4); +            tmp_cmd = ABC_ALLOC(char, strlen(ppCommands[j]->sName)+4);              (void) sprintf(tmp_cmd, "%s -h", ppCommands[j]->sName);              (void) Cmd_CommandExecute( pAbc, tmp_cmd );              ABC_FREE(tmp_cmd); | 
