Project

General

Profile

Bug #11297

chmod: NULL pointer errors

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    chmod.c: In function 'parseargs':
    chmod.c:556:46: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
          (av[i] != (char *)NULL) && (av[i][0] != (char)NULL);
                                                  ^
    cc1: all warnings being treated as errors

#1

Updated by Electric Monk over 1 year ago

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

git commit 0f063ce817df80cc8fb489abe02246d3d750d2fd

commit  0f063ce817df80cc8fb489abe02246d3d750d2fd
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-06T21:06:15.000Z

    11297 chmod: NULL pointer errors
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Reviewed by: John Levon <john.levon@joyent.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF