mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08: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:
parent
b150e386ae
commit
42aa10c985
@ -243,11 +243,10 @@ static int32_t aout_section_names(char *name, int pass, int *bits)
|
||||
/*
|
||||
* Default to 32 bits.
|
||||
*/
|
||||
if (!name)
|
||||
if (!name) {
|
||||
*bits = 32;
|
||||
|
||||
if (!name)
|
||||
return stext.index;
|
||||
}
|
||||
|
||||
if (!strcmp(name, ".text"))
|
||||
return stext.index;
|
||||
|
Loading…
x
Reference in New Issue
Block a user