mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
Revert "df: remove the unused fstype var"
This reverts commit 647f70e6bf.
fstype is used in a call to build_iovec_argf() in this branch, and the
reverted commit didn't remove the variable, just its initialization.
This is a direct commit to stable/12.
Reported by: GCC -Wmaybe-uninitialized
This commit is contained in:
1 parent
0ae8e682d8
commit
bc74e50cdf
1 file changed
+2
@@ -141,6 +141,7 @@ main(int argc, char *argv[])
|
||||
int iovlen = 0;
|
||||
#endif
|
||||
|
||||
fstype = "ufs";
|
||||
(void)setlocale(LC_ALL, "");
|
||||
memset(&maxwidths, 0, sizeof(maxwidths));
|
||||
memset(&totalbuf, 0, sizeof(totalbuf));
|
||||
@@ -209,6 +210,7 @@ main(int argc, char *argv[])
|
||||
case 't':
|
||||
if (vfslist_t != NULL)
|
||||
xo_errx(1, "only one -t option may be specified");
|
||||
fstype = optarg;
|
||||
vfslist_t = makevfslist(optarg, &skipvfs_t);
|
||||
break;
|
||||
case 'T':
|
||||
|
||||
Reference in new issue
Block a user