11301 cpio: NULL pointer errors

Review Request #2047 — Created July 1, 2019 and submitted

tsoome
illumos-gate
11301
1f151b1...
general
cpio.c: In function 'ckopts':
cpio.c:1298:15: error: comparison between pointer and integer [-Werror]
   while (*t_p != NULL) {
               ^~
cpio.c: In function 'creat_spec':
cpio.c:1895:35: error: comparison between pointer and integer [-Werror]
   if (curdir != NULL && curdir[1] == NULL) {
                                   ^~
cpio.c: In function 'gethdr':
cpio.c:4676:16: error: comparison between pointer and integer [-Werror]
    if (*preptr != NULL) {
                ^~
cc1: all warnings being treated as errors


gdamore
  1. Ship It!
  2. 
      
ptribble
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...