diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-10-17 17:22:56 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-10-17 19:34:02 +0100 |
commit | 59f769920276229a3ee2dcbe75ea54095cf14ffe (patch) | |
tree | 3717404f91940b8484a9135a389f567d05779aa7 | |
parent | e1d7cee59b08655c224999b21e9fbf139f5ee54e (diff) | |
download | procd-59f769920276229a3ee2dcbe75ea54095cf14ffe.tar.gz |
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 <daniel@makrotopia.org>
-rw-r--r-- | uxc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); |