projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74c1040
)
tp_setattro() is supposed to return -1 on errors
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 24 Sep 2009 10:04:34 +0000
(13:04 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 24 Sep 2009 10:04:34 +0000
(13:04 +0300)
python/rpmts-py.c
patch
|
blob
|
history
diff --git
a/python/rpmts-py.c
b/python/rpmts-py.c
index
821d951
..
22aeb20
100644
(file)
--- a/
python/rpmts-py.c
+++ b/
python/rpmts-py.c
@@
-997,7
+997,7
@@
static int rpmts_setattro(PyObject * o, PyObject * n, PyObject * v)
int fdno;
if (rstreq(name, "scriptFd")) {
- if (!PyArg_Parse(v, "i", &fdno)) return
0
;
+ if (!PyArg_Parse(v, "i", &fdno)) return
-1
;
if (fdno < 0) {
PyErr_SetString(PyExc_TypeError, "bad file descriptor");
return -1;