summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-12-02 20:40:49 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-12-02 20:44:15 -0500
commitc8749e7fbc3174136f4e654ae9a50f3e87ef6e60 (patch)
tree4ea1519722bb5f9962d9f918857240ea8b6779c5
parent8ccd64789ab030b76a99b578b5b1e9812b7a8cd8 (diff)
downloadpython-systemd-c8749e7fbc3174136f4e654ae9a50f3e87ef6e60.tar.gz
reader: avoid gcc warning
gcc warns that r might be uninitialized, because it doesn't know that r will be initialized in the 'if' statement. Initialize the variable to avoid the warning.
-rw-r--r--systemd/_reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/_reader.c b/systemd/_reader.c
index 58ee04c..685b43e 100644
--- a/systemd/_reader.c
+++ b/systemd/_reader.c
@@ -334,7 +334,7 @@ PyDoc_STRVAR(Reader_next__doc__,
"Returns False if at end of file, True otherwise.");
static PyObject* Reader_next(Reader *self, PyObject *args) {
int64_t skip = 1LL;
- int r;
+ int r = -EUCLEAN;
if (!PyArg_ParseTuple(args, "|L:next", &skip))
return NULL;