fix typos
[openssl.git] / demos / maurice / example1.c
index da2c6d31c566aae5ec35d23a2da9522987d28779..1ef829990065103d7573c6132747f845f50471cd 100644 (file)
@@ -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);