Skip to content

Commit c8749e7

Browse files
committed
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.
1 parent 8ccd647 commit c8749e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemd/_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ PyDoc_STRVAR(Reader_next__doc__,
334334
"Returns False if at end of file, True otherwise.");
335335
static PyObject* Reader_next(Reader *self, PyObject *args) {
336336
int64_t skip = 1LL;
337-
int r;
337+
int r = -EUCLEAN;
338338

339339
if (!PyArg_ParseTuple(args, "|L:next", &skip))
340340
return NULL;

0 commit comments

Comments
 (0)