From: Lutz Jänicke Date: Thu, 21 Mar 2002 19:17:06 +0000 (+0000) Subject: Fix buggy if-condition (thomas poindessous ). X-Git-Tag: OpenSSL_0_9_7-beta1~140 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a89cf50c59e6f306d50ffd085c240a1e7d87188d;p=oweals%2Fopenssl.git Fix buggy if-condition (thomas poindessous ). Submitted by: Reviewed by: PR: --- diff --git a/demos/maurice/example1.c b/demos/maurice/example1.c index da2c6d31c5..1ef8299900 100644 --- a/demos/maurice/example1.c +++ b/demos/maurice/example1.c @@ -72,7 +72,7 @@ void main_encrypt(void) pubKey[0] = ReadPublicKey(PUBFILE); - if(!pubKey) + if(!pubKey[0]) { fprintf(stderr,"Error: can't load public key"); exit(1);