Opened 18 years ago
Closed 18 years ago
Last modified 18 years ago
#5777 closed defect (wontfix)
0 is an invalid pointer in C++, not NULL - libmythdb
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | trivial | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
In C++, 0 is the value of an invalid pointer. Not NULL.
Attachments (1)
Change History (3)
by , 18 years ago
| Attachment: | libs_libmythdb-krazy2-remove-null.patch added |
|---|
comment:1 by , 18 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
We prefer NULL, easier to tell the value is for a pointer...
comment:2 by , 18 years ago
No problem. I have updated the coding standard wiki page to mention that.
Note:
See TracTickets
for help on using tickets.

Replaces NULL with 0 in C++ code in libmythdb