summaryrefslogtreecommitdiffstats
path: root/uemis.c
diff options
context:
space:
mode:
Diffstat (limited to 'uemis.c')
-rw-r--r--uemis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis.c b/uemis.c
index 4306a1b55..e4a4adb21 100644
--- a/uemis.c
+++ b/uemis.c
@@ -129,7 +129,7 @@ static struct uemis_helper *uemis_get_helper(int diveid)
php = &hp->next;
break;
}
- hp = *php = malloc(sizeof(struct uemis_helper));
+ hp = *php = calloc(1, sizeof(struct uemis_helper));
hp->diveid = diveid;
hp->next = NULL;
return hp;