11439 tnf: NULL pointer errors

Review Request #2157 - Created July 11, 2019 and updated

Information
Toomas Soome
illumos-gate
11439
cfb7ab5...
Reviewers
general
../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

  

Issues

  • 0
  • 2
  • 0
  • 2
Description From Last Updated
Andy Fiddaman
Toomas Soome
Review request changed

Commit:

-fb334bc1a20158d5f0e80f9105772cdb85f1dab4
+cfb7ab56e485ac127ab4d364c8b59e29dca548ab

Diff:

Revision 2 (+3 -7)

Show changes

Andy Fiddaman
Ship It!
Loading...