From: Philippe Teuwen Date: Wed, 26 Mar 2014 21:29:41 +0000 (+0100) Subject: Fix offline column in help dump X-Git-Tag: v1.0.0~2^2~4 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/b5727175c08599f0f483edbfcfc534ff7f050d77?ds=sidebyside;hp=-c Fix offline column in help dump --- b5727175c08599f0f483edbfcfc534ff7f050d77 diff --git a/client/cmdparser.c b/client/cmdparser.c index c971092b..7c3c60cc 100644 --- a/client/cmdparser.c +++ b/client/cmdparser.c @@ -85,7 +85,6 @@ void dumpCommandsRecursive(const command_t cmds[]) int i = 0; char* tabulation = "###"; - char* offline = "N"; // First, dump all single commands, which are not a container for // other commands printf("command|offline|description\n"); @@ -93,6 +92,7 @@ void dumpCommandsRecursive(const command_t cmds[]) while (cmds[i].Name) { + char* offline = "N"; if(cmds[i].Help[0] == '{' && ++i) continue; if ( cmds[i].Offline) offline = "Y";