summaryrefslogtreecommitdiff
path: root/ext/SDBM_File/SDBM_File.xs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/SDBM_File/SDBM_File.xs')
-rw-r--r--ext/SDBM_File/SDBM_File.xs3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/SDBM_File/SDBM_File.xs b/ext/SDBM_File/SDBM_File.xs
index 6aafb6b99f..ac16062800 100644
--- a/ext/SDBM_File/SDBM_File.xs
+++ b/ext/SDBM_File/SDBM_File.xs
@@ -40,8 +40,7 @@ sdbm_TIEHASH(dbtype, filename, flags, mode)
RETVAL = NULL ;
if ((dbp = sdbm_open(filename,flags,mode))) {
- RETVAL = (SDBM_File)safemalloc(sizeof(SDBM_File_type)) ;
- Zero(RETVAL, 1, SDBM_File_type) ;
+ RETVAL = (SDBM_File)safecalloc(1, sizeof(SDBM_File_type));
RETVAL->dbp = dbp ;
}