Project

General

Profile

Bug #11411

pwconv: NULL pointer errors

Added by Toomas Soome 3 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:

    pwconv.c: In function 'main':
    pwconv.c:247:23: error: comparison between pointer and integer [-Werror]
          *pwdp->pw_passwd == NULL)) {
                           ^~
    pwconv.c:264:39: error: comparison between pointer and integer [-Werror]
         if (pwdp->pw_age && *pwdp->pw_age != NULL) {
                                           ^~
    pwconv.c:311:45: error: comparison between pointer and integer [-Werror]
            (pwdp->pw_passwd && *pwdp->pw_passwd == NULL)) &&
                                                 ^~
    pwconv.c:323:21: error: comparison between pointer and integer [-Werror]
           *pwdp->pw_age == NULL)) {
                         ^~
    pwconv.c:350:38: error: comparison between pointer and integer [-Werror]
        if (pwdp->pw_age && *pwdp->pw_age != 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 2c7de944f0b4dac050b75bf442d3dc60d3ae16af

commit  2c7de944f0b4dac050b75bf442d3dc60d3ae16af
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-26T05:43:20.000Z

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

Also available in: Atom PDF