aboutsummaryrefslogtreecommitdiff
path: root/crypto/LPdir_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/LPdir_unix.c')
-rw-r--r--crypto/LPdir_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/LPdir_unix.c b/crypto/LPdir_unix.c
index 3a14da1..1428cd1 100644
--- a/crypto/LPdir_unix.c
+++ b/crypto/LPdir_unix.c
@@ -83,7 +83,7 @@ const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory)
errno = ENOMEM;
return 0;
}
- memset(*ctx, '\0', sizeof(**ctx));
+ memset(*ctx, 0, sizeof(**ctx));
(*ctx)->dir = opendir(directory);
if ((*ctx)->dir == NULL) {