mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 21:33:02 +02:00
confd: Fix use of uninitialized value
This commit is contained in:
committed by
Joachim Wiberg
parent
9969987347
commit
7afc650bcf
@@ -132,7 +132,7 @@ static void ifinit(sr_session_ctx_t *session)
|
||||
|
||||
TAILQ_FOREACH(iface, &iface_list, link) {
|
||||
char xpath[sizeof(INTERFACE_XPATH) + IFNAMSIZ + 128];
|
||||
sr_val_t val;
|
||||
sr_val_t val = {};
|
||||
|
||||
snprintf(xpath, sizeof(xpath), INTERFACE_XPATH "/type", iface->ifname);
|
||||
if (!strcmp("lo", iface->ifname))
|
||||
|
||||
Reference in New Issue
Block a user