[PATCH 7/9] Initialize iface structure properly (#638131)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 loader/loader.c |    2 +-
 loader/net.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 74d3e2d..7d7863b 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1531,7 +1531,7 @@ static char *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 81f11a8..64b493d 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -2001,7 +2001,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);
 
-- 
1.7.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux