From b5727175c08599f0f483edbfcfc534ff7f050d77 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 26 Mar 2014 22:29:41 +0100 Subject: [PATCH] Fix offline column in help dump --- client/cmdparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.5