projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the use of mdebug backtrace a separate option
[openssl.git]
/
crypto
/
LPdir_vms.c
diff --git
a/crypto/LPdir_vms.c
b/crypto/LPdir_vms.c
index 88c7ddd85c05ae2024ca92258cf8cbd6250232fd..362918dae3797125fa4fa25f64c9ae7c51f4c125 100644
(file)
--- a/
crypto/LPdir_vms.c
+++ b/
crypto/LPdir_vms.c
@@
-104,12
+104,12
@@
const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory)
return 0;
}
return 0;
}
- *ctx =
(LP_DIR_CTX *)malloc(sizeof(LP_DIR_CTX
));
+ *ctx =
malloc(sizeof(**ctx
));
if (*ctx == NULL) {
errno = ENOMEM;
return 0;
}
if (*ctx == NULL) {
errno = ENOMEM;
return 0;
}
- memset(*ctx,
'\0', sizeof(LP_DIR_CTX
));
+ memset(*ctx,
0, sizeof(**ctx
));
strcpy((*ctx)->filespec, directory);
strcat((*ctx)->filespec, "*.*;");
strcpy((*ctx)->filespec, directory);
strcat((*ctx)->filespec, "*.*;");