Skip to content

Feature/106405 physicalized dmgmethod improvements#389

Draft
FlufflesTheMicrosaur wants to merge 4 commits into
kronosaur:integration/API59from
FlufflesTheMicrosaur:feature/106405-physicalized_dmgmethod_improvements
Draft

Feature/106405 physicalized dmgmethod improvements#389
FlufflesTheMicrosaur wants to merge 4 commits into
kronosaur:integration/API59from
FlufflesTheMicrosaur:feature/106405-physicalized_dmgmethod_improvements

Conversation

@FlufflesTheMicrosaur

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread Mammoth/TSE/Utilities.cpp
// We also include periods in case of "pierce.5" and colons for "pierce:5"
else if (IsCharAlphaNumeric(*pC) || *pC == '.' || *pC == ':')
{
if (pNameEnd < pStart)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first time this block is entered pNameEnd is NULL.
A nullptr is not required to compare less than another pointer.

Recommend explicitly checking for NULL:

if ((pNameEnd == NULL) || (pNameEnd < pStart))

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.

2 participants