diff --git a/demos/maurice/example1.c b/demos/maurice/example1.c index da2c6d31c..1ef829990 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);