less global vars

This commit is contained in:
Philippe Teuwen 2020-06-01 20:30:11 +02:00
commit d234e2a8f5
4 changed files with 14 additions and 13 deletions

View file

@ -234,8 +234,8 @@ int CmdsParse(const command_t Commands[], const char *Cmd) {
return PM3_SUCCESS;
}
char pparent[512] = {0};
char *parent = pparent;
static char pparent[512] = {0};
static char *parent = pparent;
void dumpCommandsRecursive(const command_t cmds[], int markdown) {
if (cmds[0].Name == NULL) return;