11447 xargs: NULL pointer errors

Review Request #2165 - Created July 11, 2019 and updated

Information
Toomas Soome
illumos-gate
11447
c96c92d...
Reviewers
general
xargs.c: In function 'parseargs':
xargs.c:1103:43: error: comparison between pointer and integer [-Werror]
   else if ((av[i][0] == '-') && (av[i][1] != NULL)) {
                                           ^~
xargs.c:1122:18: error: comparison between pointer and integer [-Werror]
     if (av[i][2] == NULL) {
                  ^~
xargs.c:1126:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      mav[mac][2] = NULL;
                  ^
xargs.c:1160:18: error: comparison between pointer and integer [-Werror]
     if (av[i][2] != NULL) {
                  ^~
xargs.c:1162:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      mav[mac][2] = NULL;
                  ^

  
Andy Fiddaman
Ship It!
Loading...