Commit Diff
--- 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 {
--- 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 {