Changeset eea0f87


Ignore:
Timestamp:
03/17/06 15:05:29 (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:
2ffda28
Parents:
ed636fb4
Message:

Properly deal with errors during creation!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r752709f reea0f87  
    121121#define MAXOPTS 1024
    122122
    123 
    124 struct trace_err_t trace_err;
    125123
    126124static struct libtrace_format_t *formats_list = 0;
     
    280278        struct libtrace_format_t *tmp;
    281279       
    282         trace_err.err_num = TRACE_ERR_NOERROR;
     280        libtrace->err.err_num = TRACE_ERR_NOERROR;
    283281        libtrace->format=NULL;
    284282       
     
    355353        struct libtrace_format_t *tmp;
    356354       
    357         trace_err.err_num = TRACE_ERR_NOERROR;
     355        libtrace->err.err_num = TRACE_ERR_NOERROR;
    358356
    359357        if((uridata = strchr(uri,':')) == NULL) {
     
    402400        struct libtrace_format_t *tmp;
    403401
    404         trace_err.err_num = TRACE_ERR_NOERROR;
     402        libtrace->err.err_num = TRACE_ERR_NOERROR;
     403        strcat(libtrace->err.problem,"Error message set\n");
     404       
    405405        /* parse the URI to determine what sort of event we are dealing with */
    406406
     
    410410                return libtrace;
    411411        }
    412        
    413412       
    414413        libtrace->format = NULL;
Note: See TracChangeset for help on using the changeset viewer.