Project

General

Profile

Bug #11402

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

    ../psig.c: In function 'uberdata_addr':
    ../psig.c:118:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
       return (NULL);
              ^

    ../pargs.c: In function 'print_args':
    ../pargs.c:1173:25: error: comparison between pointer and integer [-Werror]
       if (datap->pd_argv[i] == NULL) {
                             ^~
    ../pargs.c: In function 'print_cmdline':
    ../pargs.c:1219:51: error: comparison between pointer and integer [-Werror]
       if (datap->pd_argv == NULL || datap->pd_argv[i] == 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 21b85b87534ca210ad665ad1393dd55ca004c0c8

commit  21b85b87534ca210ad665ad1393dd55ca004c0c8
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-26T05:17:47.000Z

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

Also available in: Atom PDF