Project

General

Profile

Bug #11447

xargs: NULL pointer errors

Added by Toomas Soome 5 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointers:

    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;
                      ^

Also available in: Atom PDF