From 05c7678fdb44a76eb7237b4f1a8cb206a26b22ca Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Tue, 11 Aug 2015 10:44:00 +0200 Subject: [PATCH] Fix warning about uninitialized variable. Some MinGW versions do not know that assert(0) never returns. This change also handles the case of building with NDEBUG. --- import.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/import.c b/import.c index 51b236a0..508ef782 100644 --- a/import.c +++ b/import.c @@ -886,6 +886,8 @@ struct ssh2_userkey *openssh_pem_read(const Filename *filename, } else { assert(0 && "Bad key type from load_openssh_pem_key"); + errmsg = "Bad key type from load_openssh_pem_key"; + goto error; } /*