X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.c;h=cef6dbb732f48201c3c26fc21e2804dfd24e6c56;hb=49f43d5f91a99b23f745726aa351d8f159774357;hp=845b4bf8241cf427678dc0d576bbc5bf97431c1c;hpb=32c4bef8826f1231984d735944cb02a01d21177a;p=elogind.git diff --git a/src/shared/util.c b/src/shared/util.c index 845b4bf82..cef6dbb73 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -2385,7 +2385,7 @@ int acquire_terminal( bool ignore_tiocstty_eperm, usec_t timeout) { - int fd = -1, notify = -1, r, wd = -1; + int fd = -1, notify = -1, r = 0, wd = -1; usec_t ts = 0; struct sigaction sa_old, sa_new;