mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Issue #8914: fix various warnings from the Clang static analyzer v254.
This commit is contained in:
parent
79da6b7075
commit
b94767ff44
36 changed files with 69 additions and 84 deletions
|
@ -3407,7 +3407,7 @@ socket_gethostbyaddr(PyObject *self, PyObject *args)
|
|||
goto finally;
|
||||
af = sa->sa_family;
|
||||
ap = NULL;
|
||||
al = 0;
|
||||
/* al = 0; */
|
||||
switch (af) {
|
||||
case AF_INET:
|
||||
ap = (char *)&((struct sockaddr_in *)sa)->sin_addr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue