Project

General

Profile

Bug #11341

grpck: NULL pointer errors

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

    grpck.c: In function 'main':
    grpck.c:230:22: error: comparison between pointer and integer [-Werror]
       for (i = 0; buf[i] != NULL; i++) {
                          ^~
    grpck.c:289:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        *cptr = NULL;
              ^
    grpck.c:290:14: error: comparison between pointer and integer [-Werror]
        if (*nptr == NULL) {
                  ^~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 3 months ago

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

git commit 869657d0e7833bf270a27c5cff9895b431d6b0a5

commit  869657d0e7833bf270a27c5cff9895b431d6b0a5
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-12T05:49:01.000Z

    11341 grpck: NULL pointer errors
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF