diff --git a/modules/libcom/src/iocsh/atInit.c b/modules/libcom/src/iocsh/atInit.c index f30a6df25..5d8f233ed 100644 --- a/modules/libcom/src/iocsh/atInit.c +++ b/modules/libcom/src/iocsh/atInit.c @@ -26,7 +26,7 @@ struct cmditem { char* cmd; }; -static ELLLIST s_cmdlist = {}; +static ELLLIST s_cmdlist = ELLLIST_INIT; static int s_initendflag = 0; // Defines the end of the initialization static void atInitHook(initHookState state)