crypt: Don't use plain integer as NULL pointer.
[paraslash.git] / crypt_common.c
index 8fac0dc..8de346c 100644 (file)
@@ -86,7 +86,7 @@ int base64_decode(char const *src, unsigned char *target, size_t targsize)
                        break;
 
                pos = strchr(Base64, ch);
                        break;
 
                pos = strchr(Base64, ch);
-               if (pos == 0) /* A non-base64 character. */
+               if (pos == NULL) /* A non-base64 character. */
                        return -E_BASE64;
 
                switch (state) {
                        return -E_BASE64;
 
                switch (state) {