Date: Fri, 12 Jun 2020 21:48:46 +0000 (UTC) From: "Simon J. Gerraty" <sjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r362124 - head/stand/common Message-ID: <202006122148.05CLmkMU085847@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sjg Date: Fri Jun 12 21:48:46 2020 New Revision: 362124 URL: https://svnweb.freebsd.org/changeset/base/362124 Log: Minor cleanup of initialized variables Sort the list and cleanup trailing white-space Reviewed by: stevek MFC after: 1 week Modified: head/stand/common/install.c Modified: head/stand/common/install.c ============================================================================== --- head/stand/common/install.c Fri Jun 12 21:33:02 2020 (r362123) +++ head/stand/common/install.c Fri Jun 12 21:48:46 2020 (r362124) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006122148.05CLmkMU085847>