From c8749e7fbc3174136f4e654ae9a50f3e87ef6e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 2 Dec 2015 20:40:49 -0500 Subject: 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. --- systemd/_reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1