From: Andre Noll Date: Tue, 9 Aug 2011 19:54:44 +0000 (+0200) Subject: crypt: Don't use plain integer as NULL pointer. X-Git-Tag: v0.4.8~16 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=72f53a08032153d2fd6b2b5811d797358ad86f96;p=paraslash.git crypt: Don't use plain integer as NULL pointer. Found by sparse. --- diff --git a/crypt_common.c b/crypt_common.c index 8fac0dc7..8de346c7 100644 --- a/crypt_common.c +++ b/crypt_common.c @@ -86,7 +86,7 @@ int base64_decode(char const *src, unsigned char *target, size_t targsize) break; pos = strchr(Base64, ch); - if (pos == 0) /* A non-base64 character. */ + if (pos == NULL) /* A non-base64 character. */ return -E_BASE64; switch (state) {