summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/param.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/param.c b/libhb/param.c
index 851c5f300..fc65d8971 100644
--- a/libhb/param.c
+++ b/libhb/param.c
@@ -364,7 +364,8 @@ filter_param_get_tunes_internal(int filter_id, int *count)
{
int ii;
- *count = 0;
+ if (count != NULL)
+ *count = 0;
for (ii = 0; param_map[ii].filter_id != HB_FILTER_INVALID; ii++)
{
if (param_map[ii].filter_id == filter_id)