summaryrefslogtreecommitdiff
path: root/lib/avtp_pipeline/platform/x86_i210/openavb_igb.c
diff options
context:
space:
mode:
authorandrew-elder <aelder@audioscience.com>2017-10-07 16:33:38 -0400
committerGitHub <noreply@github.com>2017-10-07 16:33:38 -0400
commit21422721301a409209f9dbb04d0c102a2e072b7a (patch)
treea17c45107028ff33055aefa25e14e5bc195e5ff1 /lib/avtp_pipeline/platform/x86_i210/openavb_igb.c
parentbffc91619ffff1990d81e7326d7d5879a705f523 (diff)
parent67cee412de055c7a49a8e37f1ee870269d3f5abb (diff)
downloadOpen-AVB-feature-appveyor.tar.gz
Merge pull request #701 from andrew-elder/feature/appveyorfeature-appveyor
appveyor - working
Diffstat (limited to 'lib/avtp_pipeline/platform/x86_i210/openavb_igb.c')
-rw-r--r--lib/avtp_pipeline/platform/x86_i210/openavb_igb.c3
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;