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:
John Baldwin committed 2023-03-21 19:55:00 -07:00
1 parent 0ae8e682d8
commit bc74e50cdf
1 file changed
+2
+2
View File
@@ -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':