0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00

output,aout: Improve aout_section_names

fix pvs-studio error 'V581 The conditional expressions of the 'if'
operators situated alongside each other are identical.
Check lines: 246, 249.'

Signed-off-by: Martin Lindhe <martin-commit@ubique.se>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Martin Lindhe
2016-11-16 15:38:12 +01:00
committed by Cyrill Gorcunov
parent b150e386ae
commit 42aa10c985

View File

@@ -243,11 +243,10 @@ static int32_t aout_section_names(char *name, int pass, int *bits)
/* /*
* Default to 32 bits. * Default to 32 bits.
*/ */
if (!name) if (!name) {
*bits = 32; *bits = 32;
if (!name)
return stext.index; return stext.index;
}
if (!strcmp(name, ".text")) if (!strcmp(name, ".text"))
return stext.index; return stext.index;