aboutsummaryrefslogtreecommitdiff
path: root/src/sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sha256.c')
-rw-r--r--src/sha256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sha256.c b/src/sha256.c
index 9c15e9ad29..0ccb13d763 100644
--- a/src/sha256.c
+++ b/src/sha256.c
@@ -294,7 +294,7 @@ char_u *sha256_bytes(char_u *buf, int buf_len, char_u *salt, int salt_len)
char_u* sha256_key(char_u *buf, char_u *salt, int salt_len)
{
// No passwd means don't encrypt
- if ((buf == NULL) || (*buf == '\0')) {
+ if ((buf == NULL) || (*buf == NUL)) {
return (char_u *)"";
}