From 59f769920276229a3ee2dcbe75ea54095cf14ffe Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sun, 17 Oct 2021 17:22:56 +0100 Subject: [PATCH] uxc: add missing 'break' statement Without the break statement the next element in the iteration will overwrite the found attributes. Stop iterating once entry has been found, so matching attributes will be used. Signed-off-by: Daniel Golle --- uxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uxc.c b/uxc.c index b33513f..d8db49d 100644 --- a/uxc.c +++ b/uxc.c @@ -530,6 +530,7 @@ static int uxc_create(char *name, bool immediately) continue; found = true; + break; } if (!found) @@ -546,7 +547,6 @@ static int uxc_create(char *name, bool immediately) if (tb[CONF_WRITE_OVERLAY_PATH]) writepath = blobmsg_get_string(tb[CONF_WRITE_OVERLAY_PATH]); - if (tb[CONF_JAIL]) jailname = blobmsg_get_string(tb[CONF_JAIL]); -- 2.30.2