fix: CMP=vs2012 (error C2143) variables to the top of a function.

This commit is contained in:
Jerzy Jamroz
2025-02-10 11:10:03 +01:00
committed by Andrew Johnson
parent 3ece668f6b
commit 61deabd787

View File

@@ -31,11 +31,11 @@ static int s_initendflag = 0; // Defines the end of the initialization
static void atInitHook(initHookState state)
{
struct cmditem *item = NULL;
if (state != initHookAfterIocRunning)
return;
struct cmditem *item = NULL;
while ((item = (struct cmditem *)ellGet(&s_cmdlist))) {
printf("%s\n", item->cmd);