From 49c0c523c69842f8ebc33135947591cf6f7a7cab Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 24 Oct 2020 11:05:17 -0400 Subject: [PATCH] Fix possibly uninitialized variable --- src/gmni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmni.c b/src/gmni.c index 000a565..61f41e2 100644 --- a/src/gmni.c +++ b/src/gmni.c @@ -315,7 +315,7 @@ main(int argc, char *argv[]) break; } - char last; + char last = 0; char buf[BUFSIZ]; for (int n = 1; n > 0;) { n = BIO_read(resp.bio, buf, BUFSIZ);