summaryrefslogtreecommitdiff
path: root/src/ask-password.c
diff options
context:
space:
mode:
authorLuis Felipe Strano Moraes <luis.strano@gmail.com>2010-09-16 23:30:01 -0300
committerLennart Poettering <lennart@poettering.net>2010-09-21 00:29:37 +0200
commit3e21c85da365f66582d77eb0a81016c7f43c7762 (patch)
tree87092d7d6ec2674f6f77135caca0350274fe0906 /src/ask-password.c
parentaa5939a3ba4a0004ced1be4d8f9b0eb7521e4cef (diff)
ask-password. Initializing socket_fd inside ask_agent.
Garbage value could have been used if there was an error creating the password file.
Diffstat (limited to 'src/ask-password.c')
-rw-r--r--src/ask-password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ask-password.c b/src/ask-password.c
index 22dda974c5..bcee6863c9 100644
--- a/src/ask-password.c
+++ b/src/ask-password.c
@@ -171,7 +171,7 @@ static int ask_agent(void) {
int fd = -1, r;
FILE *f = NULL;
char *socket_name = NULL;
- int socket_fd, signal_fd;
+ int socket_fd = -1, signal_fd;
sigset_t mask;
usec_t not_after;