diff options
Diffstat (limited to 'lib/avtp_pipeline/platform/x86_i210/openavb_igb.c')
-rw-r--r-- | lib/avtp_pipeline/platform/x86_i210/openavb_igb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/avtp_pipeline/platform/x86_i210/openavb_igb.c b/lib/avtp_pipeline/platform/x86_i210/openavb_igb.c index 6bbbc8b4..f5c1acf0 100644 --- a/lib/avtp_pipeline/platform/x86_i210/openavb_igb.c +++ b/lib/avtp_pipeline/platform/x86_i210/openavb_igb.c @@ -1,5 +1,6 @@ /************************************************************************************************************* Copyright (c) 2012-2015, Symphony Teleca Corporation, a Harman International Industries, Incorporated company +Copyright (c) 2016-2017, Harman International Industries, Incorporated All rights reserved. Redistribution and use in source and binary forms, with or without @@ -107,7 +108,7 @@ device_t *igbAcquireDevice() LOCK(); if (!igb_dev) { - device_t *tmp_dev = malloc(sizeof(device_t)); + device_t *tmp_dev = calloc(1, sizeof(device_t)); if (!tmp_dev) { AVB_LOGF_ERROR("Cannot allocate memory for device: %s", strerror(errno)); goto unlock; |