ask-password. Initializing socket_fd inside ask_agent.

Garbage value could have been used if there was an error creating the
password file.
This commit is contained in:
Luis Felipe Strano Moraes 2010-09-16 23:30:01 -03:00 committed by Lennart Poettering
parent aa5939a3ba
commit 3e21c85da3

View File

@ -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;