Project

General

Profile

Bug #11412

pwck: NULL pointer errors

Added by Toomas Soome about 1 month ago. Updated 23 days 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:

    pwck.c: In function 'main':
    pwck.c:128:22: error: comparison between pointer and integer [-Werror]
       for (i = 0; buf[i] != NULL; i++)
                          ^~
    pwck.c:139:12: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       delim[7] = NULL;
                ^
    pwck.c:194:17: error: comparison between pointer and integer [-Werror]
       if (logbuf[0] == NULL)
                     ^~
    pwck.c:214:15: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
         logbuf[j] = NULL;
                   ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 23 days ago

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

git commit ff449c69af060b9ec3cc03b550bd8f501dd6eb97

commit  ff449c69af060b9ec3cc03b550bd8f501dd6eb97
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-26T05:45:38.000Z

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

Also available in: Atom PDF