summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-07-15 15:34:22 +0200
committerKay Sievers <kay@vrfy.org>2012-07-15 15:34:22 +0200
commit4a0ff4780d4e5e3927f1cf574e05979ddeef8ae1 (patch)
treee4b5ac4b70fe863eb4d042e2ad71651f99cffbb3 /src/shared
parent19d1e4eeb6501b77ba34a29e6a632fcf775fccd5 (diff)
aquire_terminal(): fix uninitialized variable
./src/shared/util.c:2457:45: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 845b4bf824..cef6dbb732 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;