]> git.mdlowis.com Git - proto/labwc.git/commit
src/ssd/ssd_part.c: ensure button is found
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 8 Apr 2024 15:56:56 +0000 (17:56 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 10 Apr 2024 06:14:59 +0000 (08:14 +0200)
commit59c95ceb262b9be22d2b63f3aa1b368b69112e50
treeebf7777acf4e70ebf29e436416cd88daefee6da3
parentb959e23d6d98b72a6ff094ad0a2cc7781bfe8f67
src/ssd/ssd_part.c: ensure button is found

This fixes an issue detected by the static analyzer.
It currently is not a real bug but it could become
one in the future if `add_toggled_icon()` is called
before `add_scene_button()`.

Rather than having `add_toggled_icon()` go through
the list, find the root button and then fetch its
node descriptor just supply the button as argument.
include/ssd-internal.h
src/ssd/ssd_part.c
src/ssd/ssd_titlebar.c