summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loader/loader.c2
-rw-r--r--loader/net.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index eb5943245..33567e3ff 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1476,7 +1476,7 @@ static void doLoaderMain(struct loaderData_s *loaderData,
}
logMessage(INFO, "need to set up networking");
- memset(&iface, 0, sizeof(iface));
+ iface_init_iface_t(&iface);
/* fall through to interface selection */
}
diff --git a/loader/net.c b/loader/net.c
index 1f01ddb8f..8fe6ca3ad 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -1897,7 +1897,7 @@ int kickstartNetworkUp(struct loaderData_s * loaderData, iface_t * iface) {
(loaderData->netDev != NULL) && (loaderData->netDev_set == 1))
return 0;
- memset(iface, 0, sizeof(*iface));
+ iface_init_iface_t(iface);
return activateDevice(loaderData, iface);