mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -938,13 +938,11 @@ static int
|
|||
bytesiobuf_getbuffer(bytesiobuf *obj, Py_buffer *view, int flags)
|
||||
{
|
||||
int ret;
|
||||
void *ptr;
|
||||
bytesio *b = (bytesio *) obj->source;
|
||||
if (view == NULL) {
|
||||
b->exports++;
|
||||
return 0;
|
||||
}
|
||||
ptr = (void *) obj;
|
||||
ret = PyBuffer_FillInfo(view, (PyObject*)obj, b->buf, b->string_size,
|
||||
0, flags);
|
||||
if (ret >= 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue