summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2002-03-21 19:16:02 +0000
committerLutz Jänicke <jaenicke@openssl.org>2002-03-21 19:16:02 +0000
commit7e58aa7d71c08929f61d24e221174ed35c210795 (patch)
tree02641c4b91680b69adff08a47fcb627ad7d22fd7 /demos
parentbe3d90de02138273d054bb9d6b4381754b34676d (diff)
Fix buggy if-condition (thomas poindessous <poinde_t@epita.fr>).
Diffstat (limited to 'demos')
-rw-r--r--demos/maurice/example1.c2
1 files changed, 1 insertions, 1 deletions
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);