• Guy Harris's avatar
    Clean up file handle management. · a6d81eff
    Guy Harris authored
    The main reason fclose() could fail is if the file is open for writing,
    not all the buffered data has been written out at the time fclose() was
    called, and the attempt to write it out fails.  In any case, the file
    handle is no longer valid after fclose() completes, whether the close
    succeeds or not, so there's no reason to keep it around.
    
    There's no reason to check whether it's null in a loop called in code
    where it's not null to start with and where it's not set to null in the
    loop.
    
    This should fix CID 1374111.
    
    Change-Id: Ib8067a17731b41d6b184a5a415addc2ecaa7c00c
    Reviewed-on: https://code.wireshark.org/review/18359Reviewed-by: 's avatarGuy Harris <guy@alum.mit.edu>
    a6d81eff
Name
Last commit
Last update
..
docsis Loading commit data...
easy_codec Loading commit data...
ethercat Loading commit data...
gryphon Loading commit data...
irda Loading commit data...
m2m Loading commit data...
mate Loading commit data...
opcua Loading commit data...
profinet Loading commit data...
stats_tree Loading commit data...
tpg Loading commit data...
unistim Loading commit data...
wimax Loading commit data...
wimaxasncp Loading commit data...
wimaxmacphy Loading commit data...
Custom.m4.example Loading commit data...
Custom.make.example Loading commit data...
Makefile.am Loading commit data...
Makefile.am.inc Loading commit data...