Typo in rule 22.9

Moderators: misra-c, david ward

gwd
Posts: 1
Joined: Thu Mar 21, 2019 11:45 am
Company: Citrix Systems UK Ltd

Typo in rule 22.9

Postby gwd » Thu Mar 28, 2019 3:49 pm

I recently downloaded MISRA C:2012, third edition, first revision, February 2019. The text for Rule 22.9 on page 190 says, "The value of errno shall be set to zero after calling an errno-setting-function" (emphasis mine). But the amplification, rationale, and exception all seem to deal with the testing of errno, not the setting of errno. The rule in Appendix A (on page 203) says, "..shall be tested against zero...", as does the version of the rule in the 2016 addendum. Seems like the text on page 190 probably needs to be fixed.

misra-c
Posts: 547
Joined: Thu Jan 05, 2006 1:11 pm

Re: Typo in rule 22.9

Postby misra-c » Thu Apr 04, 2019 8:37 am

---
Posted by and on behalf of
the MISRA C Working Group


Return to “8.22 Resources”

Who is online

Users browsing this forum: No registered users and 0 guests