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: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/b5727175c08599f0f483edbfcfc534ff7f050d77?hp=57c695563f1892ed8eb3d8841f70ccce9f01c53d Fix offline column in help dump --- 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";