Skip to content

Commit 1abac3c

Browse files
thatguystonekeszybz
authored andcommitted
reader: Fix use of potentially uninitialized value
1 parent 44f7d19 commit 1abac3c

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
@@ -918,7 +918,7 @@ PyDoc_STRVAR(Reader_wait__doc__,
918918
"See :manpage:`sd_journal_wait(3)` for further discussion.");
919919
static PyObject* Reader_wait(Reader *self, PyObject *args) {
920920
int r;
921-
int64_t timeout;
921+
int64_t timeout = -1;
922922

923923
if (!PyArg_ParseTuple(args, "|L:wait", &timeout))
924924
return NULL;

0 commit comments

Comments
 (0)