summaryrefslogtreecommitdiff
path: root/phash.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-26 15:29:09 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-26 15:29:09 -0700
commit7ad24562dccca867d9ba591ac7dd242456003c5b (patch)
tree8103d37019b99d0ad9278b7dbff2981861a99268 /phash.pl
parent54dd03bfe56d6f23e423ed65054b329e1830ece1 (diff)
downloadnasm-7ad24562dccca867d9ba591ac7dd242456003c5b.tar.gz
nasm-7ad24562dccca867d9ba591ac7dd242456003c5b.tar.bz2
nasm-7ad24562dccca867d9ba591ac7dd242456003c5b.zip
BR 2827397: fix invalid C in outcoff AddExports()
The construct: if (i == nsects) directive_sec = sects[coff_make_section (EXPORT_SECTION_NAME, EXPORT_SECTION_FLAGS)]; ... where coff_make_section() can change the global variable "sects" is undefined C, since there is no sequence point involved in the [] operator, and it is therefore fully permitted for the C compiler to read the sects variable first. Change this construct into two statements to enforce defined behavior; this also ends up with the code slightly simpler. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'phash.pl')
0 files changed, 0 insertions, 0 deletions