Changeset 61b4543 for lib


Ignore:
Timestamp:
04/21/07 15:50:46 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
6bea435
Parents:
4df814d
Message:

Provide better error messages -- don't output NULL pointers if we can help it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r73dd29f r61b4543  
    622622{
    623623        assert(libtrace);
    624         libtrace->format->fin_output(libtrace);
     624        if (libtrace->format)
     625                libtrace->format->fin_output(libtrace);
    625626        free(libtrace->uridata);
    626627        free(libtrace);
     
    13301331        if(trace->err.err_num) {
    13311332                fprintf(stderr,"%s(%s): %s\n",
    1332                                 buf,trace->uridata,trace->err.problem);
     1333                                buf,
     1334                                trace->uridata?trace->uridata:"no uri",
     1335                                trace->err.problem);
    13331336        } else {
    13341337                fprintf(stderr,"%s(%s): No error\n",buf,trace->uridata);
Note: See TracChangeset for help on using the changeset viewer.