fix missing return

Tue, 25 Nov 2025 12:10:04 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 25 Nov 2025 12:10:04 +0100
changeset 935
d95e8723545c
parent 934
89118a9350da
child 936
d40a72210be8

fix missing return

ui/common/object.c file | annotate | diff | comparison | revisions
--- a/ui/common/object.c	Sun Nov 23 14:52:41 2025 +0100
+++ b/ui/common/object.c	Tue Nov 25 12:10:04 2025 +0100
@@ -188,7 +188,5 @@
 
 void* ui_object_get(UiObject *obj, const char *key) {
     UiObjectPrivate *p = (UiObjectPrivate*)obj;
-    if(p->ext) {
-        return cxMapGet(p->ext, key);
-    }
+    return p->ext ? cxMapGet(p->ext, key) : NULL;
 }

mercurial