From 8100380d9e6fdd52eb7054f3300046028dcde8f9 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sun, 22 Apr 2018 10:58:37 +0430 Subject: [PATCH] Minor, fix calloc call order --- src/hb-blob.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-blob.cc b/src/hb-blob.cc index 6ce3274bc..d15a7cb3b 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -572,7 +572,7 @@ hb_blob_create_from_file (const char *file_name) int fd = open (file_name, (writable ? O_RDWR : O_RDONLY) | _O_BINARY, 0); if (unlikely (fd == -1)) return hb_blob_get_empty (); - hb_mapped_file_t *file = (hb_mapped_file_t *) calloc (sizeof (hb_mapped_file_t), 1); + hb_mapped_file_t *file = (hb_mapped_file_t *) calloc (1, sizeof (hb_mapped_file_t)); struct stat st; if (unlikely (fstat (fd, &st) == -1)) goto fail;