summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-02-22 18:09:45 -0500
committerDave Jones <davej@redhat.com>2011-02-22 18:09:45 -0500
commitbe19cd5f12fcc827c1c2533bc50902dd2111ff64 (patch)
tree1d58cb769c085423d8bca30a73863f9cb4002a76
parent56c10d5dab7eac36ba082c3e300b1d24bed6854e (diff)
fix segfault
-rw-r--r--x86info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/x86info.c b/x86info.c
index 89f6960..1a50579 100644
--- a/x86info.c
+++ b/x86info.c
@@ -245,6 +245,7 @@ int main (int argc, char **argv)
}
/* For now, we only support topology parsing on Intel. */
+ cpu = firstcpu;
if (cpu->vendor == VENDOR_INTEL)
display_topology(firstcpu);