11385 ls: NULL pointer errors

Review Request #2108 — Created July 10, 2019 and submitted

tsoome
illumos-gate
11385
37f9d87...
general
../ls.c: In function 'set_sysattrtm_display':
../ls.c:2540:14: error: comparison between pointer and integer [-Werror]
   if (*value != NULL) {
              ^~
cc1: all warnings being treated as errors


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
alp
  1. 
      
  2. usr/src/cmd/ls/ls.c (Diff revision 1)
     
     

    Should it be value != NULL or do we really mean value[0] != 0 ?

    1. actually it has to be value != NULL because we can get NULL when array length is 0.

  3. 
      
alarcher
  1. Ship It!
  2. 
      
tsoome
citrus
  1. Ship It!
  2. 
      
alp
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...