Project

General

Profile

Bug #11439

tnf: NULL pointer errors

Added by Toomas Soome 5 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

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

Also available in: Atom PDF