]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: initialize all variables (#2714)
authorThorsten Kukuk <kukuk@suse.com>
Tue, 26 Mar 2024 08:33:32 +0000 (09:33 +0100)
committerThorsten Kukuk <kukuk@suse.com>
Tue, 26 Mar 2024 08:33:32 +0000 (09:33 +0100)
cpu->bookid got initialized twice instead of drawerid

Signed-off-by: Thorsten Kukuk <kukuk@suse.com>
sys-utils/lscpu-cpu.c

index 88bdaf0f4cd419f22d4f8cb77155e569b5b64243..9e1e0c4f7ed1460209d01b9fac29ee11abfd7104 100644 (file)
@@ -20,7 +20,7 @@ struct lscpu_cpu *lscpu_new_cpu(int id)
        cpu->coreid = -1;
        cpu->socketid = -1;
        cpu->bookid = -1;
-       cpu->bookid = -1;
+       cpu->drawerid = -1;
        cpu->address = -1;
        cpu->configured = -1;