[systemd-devel] [PATCH] ask-password-api.c: fix assigned but not read warning

Daniel Buch boogiewasthere at gmail.com
Thu Jun 26 03:50:40 PDT 2014


Not sure this is an appropiate fix, feel free to leave it out

---
 src/shared/ask-password-api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/ask-password-api.c b/src/shared/ask-password-api.c
index 5997a03..39eab0d 100644
--- a/src/shared/ask-password-api.c
+++ b/src/shared/ask-password-api.c
@@ -344,7 +344,7 @@ int ask_password_agent(
 
         fd = -1;
 
-        signal_fd = signalfd(-1, &mask, SFD_NONBLOCK|SFD_CLOEXEC);
+        signal_fd = signalfd(fd, &mask, SFD_NONBLOCK|SFD_CLOEXEC);
         if (signal_fd < 0) {
                 log_error("signalfd(): %m");
                 r = -errno;
-- 
2.0.0



More information about the systemd-devel mailing list