devmon: Fix deletion of conditions

Only compare the beginning of the condition, not the whole
condition name.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
This commit is contained in:
Mattias Walström
2026-02-10 19:49:13 +01:00
parent 266f1132a4
commit 109d8826bd
+1 -1
View File
@@ -107,7 +107,7 @@ void devmon_add_cond(const char *cond)
void devmon_del_cond(const char *cond)
{
if (!cond || strcmp(cond, "dev/"))
if (!cond || strncmp(cond, COND_DEV, strlen(COND_DEV)))
return;
drop_node(find_node(cond));