From b357c9757726e2b6ef06d3d40d1932b7a97d4180 Mon Sep 17 00:00:00 2001 From: Nick Kelsey Date: Fri, 2 Jun 2017 12:24:07 -0700 Subject: [PATCH] fix warning --- hdhomerun_device_selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdhomerun_device_selector.c b/hdhomerun_device_selector.c index 00a23ad..2a862ac 100644 --- a/hdhomerun_device_selector.c +++ b/hdhomerun_device_selector.c @@ -71,7 +71,7 @@ void hdhomerun_device_selector_add_device(struct hdhomerun_device_selector_t *hd } } - struct hdhomerun_device_t **hd_list = (struct hdhomerun_device_t **)realloc(hds->hd_list, (hds->hd_count + 1) * sizeof(struct hdhomerun_device_selector_t *)); + struct hdhomerun_device_t **hd_list = (struct hdhomerun_device_t **)realloc(hds->hd_list, (hds->hd_count + 1) * sizeof(struct hdhomerun_device_t *)); if (!hd_list) { hdhomerun_debug_printf(hds->dbg, "hdhomerun_device_selector_add_device: failed to allocate device list\n"); return;