]> git.mdlowis.com Git - proto/labwc.git/commit
menu: ignore <item> without parent <menu>
authorJohan Malm <jgm323@gmail.com>
Thu, 13 Jun 2024 20:00:44 +0000 (21:00 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 13 Jun 2024 21:17:16 +0000 (23:17 +0200)
commit4ee538c6cd60b3fd7daeaa4e394d2b6a519e7642
treec3f2cc4630efe5009a60be0116c8c92308d4b814
parentdc27be2471ba1f0e428cfec82a15b562a8f93c1e
menu: ignore <item> without parent <menu>

...to avoid assert() in item_create() because current_menu is NULL.

Reproduce crash with...

    <?xml version="1.0" encoding="utf-8"?>
    <openbox_menu>
      <item label="foo"/>
    </openbox_menu>
src/menu/menu.c