Project

General

Profile

Actions

Bug #5589

closed

improper use of NULL in tools/ctf

Added by Richard PALO over 7 years ago. Updated over 7 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
Gerrit CR:

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

Actions

Also available in: Atom PDF