aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/x86
diff options
context:
space:
mode:
authorbigbear <ns@bigbear.dk>2024-02-08 04:38:31 +0100
committerbigbear <ns@bigbear.dk>2024-02-08 20:25:46 +0100
commitd61f38badd7a3f5f4ca7a0d17aa81e081d81dd49 (patch)
tree8d9dbdb15bb25cf396e9d4ffd492308e0966ba39 /modules/devices/x86
parentddf42c8dfd3523952d3debe335fc6efff8c107ba (diff)
FIX QLcode - sscanf incorrect check
Diffstat (limited to 'modules/devices/x86')
-rw-r--r--modules/devices/x86/processor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c
index 518786b5..4141f051 100644
--- a/modules/devices/x86/processor.c
+++ b/modules/devices/x86/processor.c
@@ -588,7 +588,7 @@ gchar *processor_get_capabilities_from_flags(gchar *strflags, gchar *lookup_pref
old = flags;
while (flags[j]) {
- if ( sscanf(flags[j], "[%d]", &i) ) {
+ if ( sscanf(flags[j], "[%d]", &i)==1 ) {
/* Some flags are indexes, like [13], and that looks like
* a new section to hardinfo shell */
tmp = h_strdup_cprintf("(%s%d)=\n", tmp,