Ignore:
Timestamp:
03/27/08 15:44:18 (5 years ago)
Author:
perry
Message:

If the file was never opened, don't bother trying to close it.
(Reported by Nevil Brownlee)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_pcapfile.c

    r1332 r1334  
    189189static int pcapfile_fin_input(libtrace_t *libtrace)  
    190190{ 
    191         libtrace_io_close(DATA(libtrace)->file); 
     191        if (DATA(libtrace)->file) 
     192                libtrace_io_close(DATA(libtrace)->file); 
    192193        free(libtrace->format_data); 
    193194        return 0; /* success */ 
Note: See TracChangeset for help on using the changeset viewer.