python-systemd/iso-c-90.patch

18 lines
732 B
Diff

diff -ur python-systemd-234.orig/systemd/_daemon.c python-systemd-234/systemd/_daemon.c
--- python-systemd-234.orig/systemd/_daemon.c 2017-03-26 03:33:59.000000000 +0200
+++ python-systemd-234/systemd/_daemon.c 2017-11-06 19:11:48.546733677 +0100
@@ -127,11 +127,12 @@
return NULL;
for (i = 0; i < len; i++) {
+ long value;
PyObject *item = PySequence_GetItem(fds, i);
if (!item)
return NULL;
- long value = PyLong_AsLong(item);
+ value = PyLong_AsLong(item);
if (PyErr_Occurred())
return NULL;