Project

General

Profile

Bug #11447

xargs: NULL pointer errors

Added by Toomas Soome about 1 month ago. Updated 24 days ago.

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

100%

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

History

#1

Updated by Electric Monk 24 days ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 1dfc79c00accaeca37225189e270abb0fab8619e

commit  1dfc79c00accaeca37225189e270abb0fab8619e
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-31T06:31:00.000Z

    11447 xargs: NULL pointer errors
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF