From: Siraaj Khandkar Date: Mon, 9 Mar 2020 09:25:00 +0000 (-0400) Subject: Initialize some of uninitialized variables X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=bfab34f8721f6f195659f8de2147f7b81aea88ce;p=khatus.git Initialize some of uninitialized variables --- diff --git a/x5/khatus.c b/x5/khatus.c index 3cccf56..d14c7d4 100644 --- a/x5/khatus.c +++ b/x5/khatus.c @@ -268,7 +268,7 @@ void read_all(Config *cfg, char *buf) { fd_set fds; - int maxfd; + int maxfd = -1; int ready; struct stat st; @@ -313,7 +313,7 @@ main(int argc, char *argv[]) int prefix = 0; char *buf; Config *cfg = &defaults; - Display *display; + Display *display = NULL; argv0 = argv[0];