]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: fix, set default sort_id = -1
authorRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 21 May 2014 11:56:20 +0000 (11:56 +0000)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 21 May 2014 11:59:24 +0000 (11:59 +0000)
Introduced in 642048e4:
 $ lsblk -o SIZE /dev/loop1
lsblk: the sort column has to be between output columns.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
misc-utils/lsblk.c

index e87b5f968524e208f56c2ea3442ae06148034eb8..2eac8b80ae6d3a611fca6bfb231032f57d940abc 100644 (file)
@@ -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) {