Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
799e3eda
Kaydet (Commit)
799e3eda
authored
Ock 12, 2013
tarafından
Eli Bendersky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #16076: check for return value of PyTuple_New for args (following
Coverity report) and cleanup code.
üst
b8f6dc85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
_elementtree.c
Modules/_elementtree.c
+11
-8
No files found.
Modules/_elementtree.c
Dosyayı görüntüle @
799e3eda
...
@@ -950,19 +950,22 @@ element_setstate_from_Python(ElementObject *self, PyObject *state)
...
@@ -950,19 +950,22 @@ element_setstate_from_Python(ElementObject *self, PyObject *state)
PICKLED_TAIL
,
PICKLED_CHILDREN
,
0
};
PICKLED_TAIL
,
PICKLED_CHILDREN
,
0
};
PyObject
*
args
;
PyObject
*
args
;
PyObject
*
tag
,
*
attrib
,
*
text
,
*
tail
,
*
children
;
PyObject
*
tag
,
*
attrib
,
*
text
,
*
tail
,
*
children
;
int
error
;
PyObject
*
retval
;
/* More instance dict members than we know to handle? */
tag
=
attrib
=
text
=
tail
=
children
=
NULL
;
tag
=
attrib
=
text
=
tail
=
children
=
NULL
;
args
=
PyTuple_New
(
0
);
args
=
PyTuple_New
(
0
);
error
=
!
PyArg_ParseTupleAndKeywords
(
args
,
state
,
"|$OOOOO"
,
kwlist
,
&
tag
,
if
(
!
args
)
&
attrib
,
&
text
,
&
tail
,
&
children
);
Py_DECREF
(
args
);
if
(
error
)
return
NULL
;
return
NULL
;
if
(
PyArg_ParseTupleAndKeywords
(
args
,
state
,
"|$OOOOO"
,
kwlist
,
&
tag
,
&
attrib
,
&
text
,
&
tail
,
&
children
))
retval
=
element_setstate_from_attributes
(
self
,
tag
,
attrib
,
text
,
tail
,
children
);
else
else
return
element_setstate_from_attributes
(
self
,
tag
,
attrib
,
text
,
retval
=
NULL
;
tail
,
children
);
Py_DECREF
(
args
);
return
retval
;
}
}
static
PyObject
*
static
PyObject
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment