From 453561bc46326b2471f0f2b0dd323a85b4d48564 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 18 May 2023 12:59:42 +0200 Subject: [PATCH] fix(msgbox): fix typo --- src/widgets/msgbox/lv_msgbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/msgbox/lv_msgbox.c b/src/widgets/msgbox/lv_msgbox.c index d957fe0e0..875deea09 100644 --- a/src/widgets/msgbox/lv_msgbox.c +++ b/src/widgets/msgbox/lv_msgbox.c @@ -112,8 +112,8 @@ lv_obj_t * lv_msgbox_create(lv_obj_t * parent, const char * title, const char * mbox->content = lv_obj_class_create_obj(&lv_msgbox_content_class, obj); LV_ASSERT_MALLOC(obj); - if(obj == NULL) return NULL; - lv_obj_class_init_obj(obj); + if(mbox->content == NULL) return NULL; + lv_obj_class_init_obj(mbox->content); bool has_txt = txt && lv_strlen(txt) > 0; if(has_txt) {