mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
aquire_terminal(): fix uninitialized variable
./src/shared/util.c:2457:45: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user