Skip to content

Conversation

kivaisan
Copy link
Contributor

IAR 8.32 does not support printing null string.

This is a fix for #125

IAR 8.32 does not support printing null string.
@kjbracey
Copy link

Pedant alert.

"Null string" is a slightly fuzzy concept. You're not printing a null string here.

A C string is a zero-terminated array of characters. A null string would be an empty one. This is passing an invalid pointer to someone expecting a pointer to a string.

C standard requires that %s gets a pointer to a string, but many C libraries are friendly and also accept null pointers.

@cmonr
Copy link
Contributor

cmonr commented Mar 20, 2019

@kivaisan Shouldn't this be targeting the 5.12 branch?

@kivaisan
Copy link
Contributor Author

Ok. I'll close this one and I created a new PR to 5.12 branch (#128)

@kivaisan kivaisan closed this Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants