Skip to content

Addressing compiler warning: comparing a pointer to a null character constant#31

Open
jonasbn wants to merge 2 commits intokerma:masterfrom
jonasbn:addressing_warning_pointer_comparison_with_null_character_constant
Open

Addressing compiler warning: comparing a pointer to a null character constant#31
jonasbn wants to merge 2 commits intokerma:masterfrom
jonasbn:addressing_warning_pointer_comparison_with_null_character_constant

Conversation

@jonasbn
Copy link
Contributor

@jonasbn jonasbn commented Jan 25, 2025

I fell over a warning and GH copilot came up with a suggestion for fix.

This PR addresses the compiler warning:

  • comparing a pointer to a null character constant; did you mean to compare to NULL? [-Wpointer-compare]

I have submitted this as a separate PR, since it did not belong in the other PR I sent you today.

Please review and see if it makes sense. My tests demonstrate that the code still works are expected with the suggested implementation.

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.

1 participant