chiark / gitweb /
main: acquire console before execing crash shell
[elogind.git] / util.c
diff --git a/util.c b/util.c
index 8042214c8fae7fdd40494691d216624a26cfeee8..f5f1b3a45e642655217be276d8c7700c058c88a4 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1597,7 +1597,7 @@ int flush_fd(int fd) {
 }
 
 int acquire_terminal(const char *name, bool fail, bool force) {
-        int fd = -1, notify = -1, r, wd;
+        int fd = -1, notify = -1, r, wd = -1;
 
         assert(name);