forked from pool/python-systemd
4b7d586e73
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-systemd?expand=0&rev=14
18 lines
732 B
Diff
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;
|
|
|