]> git.sur5r.net Git - i3/i3/commitdiff
i3-msg: Initialize message_type (Thanks badboy)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Mar 2010 14:45:36 +0000 (15:45 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Mar 2010 14:45:36 +0000 (15:45 +0100)
i3-msg/main.c

index 4c0efbaa86ef55d100b60dc7642c18c3705a9d7d..193d04e9082e8e4ddd4c0ee89652ba18c932a0fb 100644 (file)
@@ -107,7 +107,7 @@ static void ipc_recv_message(int sockfd, uint32_t message_type,
 int main(int argc, char *argv[]) {
         char *socket_path = "/tmp/i3-ipc.sock";
         int o, option_index = 0;
-        int message_type;
+        int message_type = I3_IPC_MESSAGE_TYPE_COMMAND;
         char *payload = "";
         bool quiet = false;