From 005ff484b9b97822bb103f48bde22fc81f60b1e3 Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Fri, 12 Jun 2020 21:48:46 +0000 Subject: [PATCH] Minor cleanup of initialized variables Sort the list and cleanup trailing white-space Reviewed by: stevek MFC after: 1 week --- stand/common/install.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stand/common/install.c b/stand/common/install.c index 87fb11f779f..de0fd88fc4e 100644 --- a/stand/common/install.c +++ b/stand/common/install.c @@ -207,15 +207,15 @@ install(char *pkgname) if (*s == '\0') goto invalid_url; - proto = NULL; devname = NULL; devnamelen = 0; - + proto = NULL; + local = 0; + if (i == 4 && !strncasecmp(pkgname, "tftp", i)) { devname = "net0"; devnamelen = 4; proto = &tftp_fsops; - local = 0; } else if (i == 4 && !strncasecmp(pkgname, "file", i)) { currdev = getenv("currdev"); local = 1;