Project

General

Profile

Bug #11292

allocate: NULL pointer errors

Added by Toomas Soome 4 months ago. Updated 4 months 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 pointer:

mkdevalloc.c: In function 'dotape':
mkdevalloc.c:322:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~
mkdevalloc.c: In function 'doaudio':
mkdevalloc.c:523:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~
mkdevalloc.c: In function 'docd':
mkdevalloc.c:906:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~
mkdevalloc.c:957:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~
mkdevalloc.c: In function 'dormdisk':
mkdevalloc.c:1114:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~

allocate3.c: In function 'mk_revoke':
allocate3.c:815:39: error: comparison between pointer and integer [-Werror]
     if (strcmp(info.pr_fname, "vold") == NULL) {
                                       ^~
allocate3.c:821:9: error: comparison between pointer and integer [-Werror]
         == NULL) {
         ^~
cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 4 months ago

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

git commit 98e973578ca69ba3ce659c761190cbf3558d359c

commit  98e973578ca69ba3ce659c761190cbf3558d359c
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-05T20:57:25.000Z

    11292 allocate: NULL pointer errors
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF