mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
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.
This commit is contained in:
parent
5f37d92450
commit
05c7678fdb
2
import.c
2
import.c
@ -886,6 +886,8 @@ struct ssh2_userkey *openssh_pem_read(const Filename *filename,
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
assert(0 && "Bad key type from load_openssh_pem_key");
|
assert(0 && "Bad key type from load_openssh_pem_key");
|
||||||
|
errmsg = "Bad key type from load_openssh_pem_key";
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user