Skip to content

Default SC Table uses zeroes instead of NULL pointers #176

Description

@myc-yang

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
Through various macros, SC ATS and RTS default tables use zeroes instead of NULL pointers

To Reproduce
N/A

Expected behavior
According to MISRA C:2012 11.9: The macro NULL shall be the only permitted form of integer null pointer constant.

Code snips
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_ats1.c#L97
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts001.c#L75
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts002.c#L69
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts003.c#L69
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts004.c#L69

System observed on:

  • Hardware
  • OS: Linux 9.8
  • Versions HS v7.0.1

Additional context
Add any other context about the problem here.

Reporter Info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions