Kaydet (Commit) 56be5f53 authored tarafından Brett Cannon's avatar Brett Cannon

Eliminate a tautological-pointer-compare warning found by Clang.

üst 56b1f1b4
...@@ -97,6 +97,8 @@ Library ...@@ -97,6 +97,8 @@ Library
- Issue #16113: Add SHA-3 and SHAKE support to hashlib module. - Issue #16113: Add SHA-3 and SHAKE support to hashlib module.
- Eliminate a tautological-pointer-compare warning in _scproxy.c.
- Issue #27776: The :func:`os.urandom` function does now block on Linux 3.17 - Issue #27776: The :func:`os.urandom` function does now block on Linux 3.17
and newer until the system urandom entropy pool is initialized to increase and newer until the system urandom entropy pool is initialized to increase
the security. This change is part of the :pep:`524`. the security. This change is part of the :pep:`524`.
......
...@@ -71,16 +71,12 @@ get_proxy_settings(PyObject* mod __attribute__((__unused__))) ...@@ -71,16 +71,12 @@ get_proxy_settings(PyObject* mod __attribute__((__unused__)))
result = PyDict_New(); result = PyDict_New();
if (result == NULL) goto error; if (result == NULL) goto error;
if (&kSCPropNetProxiesExcludeSimpleHostnames != NULL) { aNum = CFDictionaryGetValue(proxyDict,
aNum = CFDictionaryGetValue(proxyDict, kSCPropNetProxiesExcludeSimpleHostnames);
kSCPropNetProxiesExcludeSimpleHostnames); if (aNum == NULL) {
if (aNum == NULL) {
v = PyBool_FromLong(0);
} else {
v = PyBool_FromLong(cfnum_to_int32(aNum));
}
} else {
v = PyBool_FromLong(0); v = PyBool_FromLong(0);
} else {
v = PyBool_FromLong(cfnum_to_int32(aNum));
} }
if (v == NULL) goto error; if (v == NULL) goto error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment