chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8afbf78
)
algorithms.c: Add missing guard for `del' to property `set' functions.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 20 Oct 2019 00:19:18 +0000
(
01:19
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:12 +0000
(22:18 +0000)
Continuing the work of
9444777c58c60253afdabf5b45011440845770e0
.
algorithms.c
patch
|
blob
|
blame
|
history
diff --git
a/algorithms.c
b/algorithms.c
index 0f05f75f9a6db348e467479dd953492668132160..3d79c039ca0ad599a369a0929b7e9c1871be4835 100644
(file)
--- a/
algorithms.c
+++ b/
algorithms.c
@@
-1675,10
+1675,14
@@
static int kxvikset_nround(PyObject *me, PyObject *val, void *hunoz)
{
kxvik_pyobj *k = (kxvik_pyobj *)me;
unsigned n;
{
kxvik_pyobj *k = (kxvik_pyobj *)me;
unsigned n;
+ int rc = -1;
- if (!convuint(val, &n)) return (-1);
+ if (!val) NIERR("__del__");
+ if (!convuint(val, &n)) goto end;
k->n = n;
k->n = n;
- return (0);
+ rc = 0;
+end:
+ return (rc);
}
static PyGetSetDef kxvik_pygetset[] = {
}
static PyGetSetDef kxvik_pygetset[] = {