Project

General

Profile

Bug #11439

tnf: NULL pointer errors

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

    ../tnfxtract.c: In function 'dumpfile_init':
    ../tnfxtract.c:131:19: error: comparison between pointer and integer [-Werror]
      if (dump_bufaddr == NULL || tnf_bufsize == 0) {
                       ^~

    ../spec.c: In function 'spec_match':
    ../spec.c:188:40: error: comparison between pointer and integer [-Werror]
       return ((step(str, spec_p->regexp_p) != NULL));
                                            ^~
    ../spec.c: In function 'spec_valtrav':
    ../spec.c:320:3: error: pointers are not permitted as case values
       case NULL:
       ^~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 26 days ago

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

git commit b40273e57d35fb2f7610ad13fa58c32658c42ff3

commit  b40273e57d35fb2f7610ad13fa58c32658c42ff3
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-30T20:08:43.000Z

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

Also available in: Atom PDF