diff --git a/src/gmni.c b/src/gmni.c

index 000a56550a686928f84e2c301c9017a8c48b3d68..61f41e29c324d980bd3a1f270e78649cdcec88e0 100644

--- a/src/gmni.c

+++ b/src/gmni.c

@@ -315,7 +315,7 @@ ret = download_resp(stderr, resp, output_file, url);

break;

}

- char last;

+ char last = 0;

char buf[BUFSIZ];

for (int n = 1; n > 0;) {

n = BIO_read(resp.bio, buf, BUFSIZ);