projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
33cb8a5
)
crypt: Don't use plain integer as NULL pointer.
author
Andre Noll
<maan@systemlinux.org>
Tue, 9 Aug 2011 19:54:44 +0000
(21:54 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 9 Aug 2011 19:54:44 +0000
(21:54 +0200)
Found by sparse.
crypt_common.c
patch
|
blob
|
history
diff --git
a/crypt_common.c
b/crypt_common.c
index 8fac0dc71ed37a7dff633a2891d4ada1a0c0376b..8de346c74b47468a15c566cae29a4ff484b056c6 100644
(file)
--- 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);
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) {