Project

General

Profile

Bug #5589

improper use of NULL in tools/ctf

Added by Richard PALO almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-02-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

There are a few improper uses of NULL in tools/ctf.

The attached patch fixes using NULL where:
- an integer type is expected either as a return value or to compare
with functions returning integers (like strchr, which returns an index not an address)
- the NULL character is not an address but a value (0 or rather '\\0')


Files

History

#2

Updated by Electric Monk almost 5 years ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

git commit ad0b1ea5d69a45fe23c434277599e315f29a5fca

commit  ad0b1ea5d69a45fe23c434277599e315f29a5fca
Author: Richard PALO <richard@NetBSD.org>
Date:   2015-02-08T02:40:56.000Z

    5589 improper use of NULL in tools/ctf
    Reviewed by: David Höppner <0xffea@gmail.com>
    Reviewed by: Josef "Jeff" Sipek <jeffpc@josefsipek.net>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF