Commit 4a0ff478 authored by Kay Sievers's avatar Kay Sievers

aquire_terminal(): fix uninitialized variable

./src/shared/util.c:2457:45: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
parent 19d1e4ee
...@@ -2385,7 +2385,7 @@ int acquire_terminal( ...@@ -2385,7 +2385,7 @@ int acquire_terminal(
bool ignore_tiocstty_eperm, bool ignore_tiocstty_eperm,
usec_t timeout) { usec_t timeout) {
int fd = -1, notify = -1, r, wd = -1; int fd = -1, notify = -1, r = 0, wd = -1;
usec_t ts = 0; usec_t ts = 0;
struct sigaction sa_old, sa_new; struct sigaction sa_old, sa_new;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment