Commit Diff


commit - 14fd8749d8cf462851d64a475a328c2fd15d8c05
commit + 56e083741cf968c178f5d3469c12721f931f6abb
blob - 9537ce9574efeab9d924b5d6963af5814e503ccd
blob + 33fe7ca1a36172d2aa4a07e4f8ca4f0966969fff
--- lsblk.c
+++ lsblk.c
@@ -627,7 +627,7 @@ int main (int argc, char *argv[])
     size_t cap_disks;
     if (argc == 0) {
         const char *s = names;
-        cap_disks = 0;
+        cap_disks = 1;
         while ((s = strchr (s, ',')) != NULL)
             ++cap_disks, ++s;
     } else {