summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-10-20 12:43:20 -0700
committerJohn Stebbins <[email protected]>2015-10-20 12:43:20 -0700
commit618bfd0bb81b4d70e640e49835da19177d7b2650 (patch)
treeacd3a03b19ca45f17e6f3bb34d8462cbad541f5b /libhb
parent744e5be23da6df059eb2b9a0778ae1eaf8b6c469 (diff)
libhb: fix dereference of null pointer
Diffstat (limited to 'libhb')
-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)