confd: drop redundant (and wrong) strlcpy(), found by Coverity Scan

The new strdupa() code handles copying the new->xpath.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-04-12 07:54:05 +02:00
parent e612014662
commit 280190ac24
-1
View File
@@ -401,7 +401,6 @@ static int cand(sr_session_ctx_t *session, uint32_t sub_id, const char *module,
return SR_ERR_SYS;
}
strlcpy(xpath, new->xpath, sizeof(xpath));
if ((ptr = strstr(xpath, "]/")) == NULL)
continue;
ptr[1] = 0;