From: Ruediger Meier Date: Wed, 21 May 2014 11:56:20 +0000 (+0000) Subject: lsblk: fix, set default sort_id = -1 X-Git-Tag: v2.25-rc1~100^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e9e0d1e06ca145b774b6adce8f86499d716e0ef;p=thirdparty%2Futil-linux.git lsblk: fix, set default sort_id = -1 Introduced in 642048e4: $ lsblk -o SIZE /dev/loop1 lsblk: the sort column has to be between output columns. Signed-off-by: Ruediger Meier --- diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index e87b5f9685..2eac8b80ae 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -1560,7 +1560,6 @@ int main(int argc, char *argv[]) atexit(close_stdout); lsblk = &_ls; - memset(lsblk, 0, sizeof(*lsblk)); while((c = getopt_long(argc, argv, "abdDe:fhlnmo:OpPiI:rstVSx:", longopts, NULL)) != -1) {