Skip to content

Commit 704f996

Browse files
authored
Fix the wrong parameter in the init
1 parent 5a0f676 commit 704f996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lwshell/src/lwshell/lwshell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ prv_parse_input(lwshell_t* lwobj) {
233233
*/
234234
lwshellr_t
235235
lwshell_init_ex(lwshell_t* lwobj) {
236-
lwobj = LWSHELL_GET_LWOBJ(NULL);
236+
lwobj = LWSHELL_GET_LWOBJ(lwobj);
237237
LWSHELL_MEMSET(lwobj, 0x00, sizeof(*lwobj));
238238
return lwshellOK;
239239
}

0 commit comments

Comments
 (0)