Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5777 closed defect (wontfix)

0 is an invalid pointer in C++, not NULL - libmythdb

Reported by: Erik Hovland <erik@…> Owned by: ijr
Priority: trivial Milestone: unknown
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no


In C++, 0 is the value of an invalid pointer. Not NULL.

Attachments (1)

libs_libmythdb-krazy2-remove-null.patch (14.8 KB) - added by Erik Hovland <erik@…> 6 years ago.
Replaces NULL with 0 in C++ code in libmythdb

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by Erik Hovland <erik@…>

Replaces NULL with 0 in C++ code in libmythdb

comment:1 Changed 6 years ago by danielk

  • Resolution set to wontfix
  • Status changed from new to closed

We prefer NULL, easier to tell the value is for a pointer...

comment:2 Changed 6 years ago by Erik Hovland <erik@…>

No problem. I have updated the coding standard wiki page to mention that.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'new'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.