Changeset ae66bde for lib/trace.c


Ignore:
Timestamp:
04/26/06 16:29:27 (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:
d97bbb2
Parents:
c3e5f30
Message:

Don't error when creating a new trace!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r91db67b rae66bde  
    357357        assert(libtrace->fifo);
    358358        free(scan);
    359         trace_set_err(libtrace,0,"");
     359        libtrace->err.err_num=TRACE_ERR_NOERROR;
     360        libtrace->err.problem[0]='\0';
    360361        return libtrace;
    361362}
     
    12501251{
    12511252        libtrace_err_t err = trace->err;
    1252         trace->err.err_num = 0; /* "OK" */
     1253        trace->err.err_num = TRACE_ERR_NOERROR; /* "OK" */
    12531254        trace->err.problem[0]='\0';
    12541255        return err;
Note: See TracChangeset for help on using the changeset viewer.