mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
As Coverity correctly points out, the `if (blocklist)` condition is never true after the `out` label, so this commit makes some changes to remove the dead code. First of all, the `regex_t` object is directly embedded in the module's data struct, so the `malloc()` call can be removed, and thus there is no need for the cleanup code anymore, so everything after the `out` label is also removed. Furthermore, two NULL checks are removed which check `d->blocklist` from `module_switch_on_connect_unload()` and `manager_added()` because both of those functions can only ever run if the `d->blocklist` regex object has been successfully initialized in `module_switch_on_connect_prepare()`. Those checks were not strictly needed to begin with. |
||
|---|---|---|
| .. | ||
| daemon | ||
| examples | ||
| gst | ||
| modules | ||
| pipewire | ||
| tests | ||
| tools | ||
| meson.build | ||