10661 qlt: NULL pointer errors

Review Request #1634 — Created April 1, 2019 and submitted

tsoome
illumos-gate
10661
db8ce58...
general
../../common/io/comstar/port/qlt/qlt.c: In function 'qlt_dump_el_trace_buffer':
../../common/io/comstar/port/qlt/qlt.c:6046:11: error: comparison between pointer and integer [-Werror]
  if (rval != NULL) {
           ^~
../../common/io/comstar/port/qlt/qlt.c:6076:29: error: comparison between pointer and integer [-Werror]
    } else if (*dump_current == NULL) {
                             ^~
../../common/io/comstar/port/qlt/qlt.c: In function 'qlt_find_trace_start':
../../common/io/comstar/port/qlt/qlt.c:6141:25: error: comparison between pointer and integer [-Werror]
  } else if (*trace_next != NULL) {
                         ^~
cc1: all warnings being treated as errors


  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
domag02
  1. 
      
  2. Should be:

        char    *trace_start = NULL;
        char    *trace_next  = NULL;
    
  3. Should be:

        char        *prop_val = NULL;
    
  4. 
      
tsoome
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...