]> git.mdlowis.com Git - proto/labwc.git/commit
don't NULL-check output when it can't be
authorbi4k8 <bi4k8@github>
Thu, 8 Dec 2022 05:28:16 +0000 (05:28 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 8 Dec 2022 19:24:02 +0000 (19:24 +0000)
commit39bea30cd54c8b978b5b0afa666acae9242ad8e7
tree7ad7a2663f6fc3028cb26df74e6da54cb6e59e0d
parent272221dae23715d7c14cba46ac53819bb0fb2bd6
don't NULL-check output when it can't be

`output` here is the `pos` argument of `wl_list_for_each`, which means
it is always assigned a return value of `wl_container_of`; this in
turn means that it is never NULL.

checking against NULL here just confuses static analysis and readers
src/output.c