Staging
v0.5.1
https://github.com/python/cpython
Revision b14a68fd7d8f02bd133b59709f969c1c564f5978 authored by Miss Islington (bot) on 22 August 2018, 05:54:39 UTC, committed by GitHub on 22 August 2018, 05:54:39 UTC

Reported by Svace static analyzer.
(cherry picked from commit f8c06b028036e50596e75d4c9f6b27ba05133efe)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
1 parent e496b2b
Raw File
Tip revision: b14a68fd7d8f02bd133b59709f969c1c564f5978 authored by Miss Islington (bot) on 22 August 2018, 05:54:39 UTC
bpo-34456: pickle: Add missing NULL check to save_global(). (GH-8851)
Tip revision: b14a68f
pystrcmp.h
#ifndef Py_STRCMP_H
#define Py_STRCMP_H

#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(int) PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
PyAPI_FUNC(int) PyOS_mystricmp(const char *, const char *);

#ifdef MS_WINDOWS
#define PyOS_strnicmp strnicmp
#define PyOS_stricmp stricmp
#else
#define PyOS_strnicmp PyOS_mystrnicmp
#define PyOS_stricmp PyOS_mystricmp
#endif

#ifdef __cplusplus
}
#endif

#endif /* !Py_STRCMP_H */
back to top