mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Eliminate a tautological-pointer-compare warning found by Clang.
This commit is contained in:
parent
56b1f1b4d5
commit
56be5f5376
2 changed files with 7 additions and 9 deletions
|
@ -71,16 +71,12 @@ get_proxy_settings(PyObject* mod __attribute__((__unused__)))
|
|||
result = PyDict_New();
|
||||
if (result == NULL) goto error;
|
||||
|
||||
if (&kSCPropNetProxiesExcludeSimpleHostnames != NULL) {
|
||||
aNum = CFDictionaryGetValue(proxyDict,
|
||||
kSCPropNetProxiesExcludeSimpleHostnames);
|
||||
if (aNum == NULL) {
|
||||
v = PyBool_FromLong(0);
|
||||
} else {
|
||||
v = PyBool_FromLong(cfnum_to_int32(aNum));
|
||||
}
|
||||
} else {
|
||||
aNum = CFDictionaryGetValue(proxyDict,
|
||||
kSCPropNetProxiesExcludeSimpleHostnames);
|
||||
if (aNum == NULL) {
|
||||
v = PyBool_FromLong(0);
|
||||
} else {
|
||||
v = PyBool_FromLong(cfnum_to_int32(aNum));
|
||||
}
|
||||
|
||||
if (v == NULL) goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue