Fix the wrong parameter in the init

This commit is contained in:
Tilen Majerle 2024-11-29 09:59:49 +01:00 committed by GitHub
parent 5a0f676daa
commit 704f996c0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -233,7 +233,7 @@ prv_parse_input(lwshell_t* lwobj) {
*/
lwshellr_t
lwshell_init_ex(lwshell_t* lwobj) {
lwobj = LWSHELL_GET_LWOBJ(NULL);
lwobj = LWSHELL_GET_LWOBJ(lwobj);
LWSHELL_MEMSET(lwobj, 0x00, sizeof(*lwobj));
return lwshellOK;
}