]> err.no Git - systemd/commitdiff
ask-password: make a confused gcc shut up
authorLennart Poettering <lennart@poettering.net>
Mon, 28 Feb 2011 22:24:33 +0000 (23:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 28 Feb 2011 22:24:33 +0000 (23:24 +0100)
src/tty-ask-password-agent.c

index 922dac3dc600f993af96dff721fcd859b140a560..a9d06ac001943c63693b6bf453552a04268721a7 100644 (file)
@@ -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;