summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-28 23:24:33 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-28 23:24:33 +0100
commit3414abee0dfadd4a7d9dcca3f46025037010488e (patch)
tree489a350fbd6aecd3c1c4381c61861ec76298dbed
parent4ce9faa9d283cbb4c46fd06138f6774579349fb7 (diff)
ask-password: make a confused gcc shut up
-rw-r--r--src/tty-ask-password-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c
index 922dac3dc6..a9d06ac001 100644
--- a/src/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent.c
@@ -315,7 +315,7 @@ static int parse_password(const char *filename, char **wall) {
struct sockaddr sa;
struct sockaddr_un un;
} sa;
- size_t packet_length;
+ size_t packet_length = 0;
assert(arg_action == ACTION_QUERY ||
arg_action == ACTION_WATCH);
@@ -330,7 +330,7 @@ static int parse_password(const char *filename, char **wall) {
}
if (arg_plymouth) {
- char **passwords;
+ char **passwords = NULL;
if ((r = ask_password_plymouth(message, not_after, filename, accept_cached, &passwords)) >= 0) {
char **p;