Minor, fix calloc call order

pull/1004/head
Ebrahim Byagowi 7 years ago committed by GitHub
parent 2a4cdfad20
commit 8100380d9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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;

Loading…
Cancel
Save