Skip to content

Commit b76eadf

Browse files
committed
fix warning: this 'if' clause does not guard
src/dmidecodemodule.c: In function 'dmidecode_get_xml': src/dmidecodemodule.c:394:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 394 | if(legacy_decode(opt->logdata, opt->type, | ^~ src/dmidecodemodule.c:397:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 397 | goto done; | ^~~~
1 parent a8755ea commit b76eadf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/dmidecodemodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,10 @@ int dmidecode_get_xml(options *opt, xmlNode* dmixml_n)
392392
}
393393
} else if(memcmp(buf + fp, "_DMI_", 5) == 0) {
394394
if(legacy_decode(opt->logdata, opt->type,
395-
buf + fp, opt->devmem, 0, dmixml_n))
395+
buf + fp, opt->devmem, 0, dmixml_n)) {
396396
found++;
397397
goto done;
398+
}
398399
}
399400
}
400401
#endif

0 commit comments

Comments
 (0)