mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
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:
parent
aa5939a3ba
commit
3e21c85da3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user