Skip to content

bpo-15954: Check return code of wcsxfrm().#508

Merged
serhiy-storchaka merged 2 commits intopython:masterfrom
serhiy-storchaka:bpo-15954-wcsxfrm-error-check
Mar 6, 2017
Merged

bpo-15954: Check return code of wcsxfrm().#508
serhiy-storchaka merged 2 commits intopython:masterfrom
serhiy-storchaka:bpo-15954-wcsxfrm-error-check

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

No description provided.

@mention-bot
Copy link
Copy Markdown

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @loewis, @tiran, @Haypo, @nnorwitz and @niemeyer to be potential reviewers.

Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM except of a minor request.

}
}
result = PyUnicode_FromWideChar(buf, n2);
exit:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

While you modify this function, can you please remove useless "if (buf)" and "if (s)" below? PyMem_Free(NULL) is well defined: it does nothing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Except adding an overhead for function call.

But I don't think it matters in comparison with the time of calling other functions.

@serhiy-storchaka serhiy-storchaka merged commit be487a6 into python:master Mar 6, 2017
@vstinner
Copy link
Copy Markdown
Member

vstinner commented Mar 7, 2017 via email

@serhiy-storchaka serhiy-storchaka deleted the bpo-15954-wcsxfrm-error-check branch May 18, 2017 13:37
jaraco pushed a commit that referenced this pull request Dec 2, 2022
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@1.5.1...1.5.2)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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