Project

General

Profile

Bug #11339

getent: 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:

    dogetserv.c: In function 'dogetserv':
    dogetserv.c:86:26: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        key[sizeof (key) - 1] = NULL;
                              ^
    dogetserv.c:89:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
         *cp = 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 142d813a06c6f9a6142e2c276b62129a17a31a65

commit  142d813a06c6f9a6142e2c276b62129a17a31a65
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-11T15:32:37.000Z

    11339 getent: 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