Commit b72f1f9a authored by Brendan Long's avatar Brendan Long

Check if start_str, stop_str and total_str are null before attempting to...

Check if start_str, stop_str and total_str are null before attempting to dereference them in dlna_str_parse_npt_range.
parent 40b5abad
......@@ -116,9 +116,12 @@ dlna_src_parse_npt_range (GstDlnaSrc * dlna_src, const gchar * field_str,
gchar tmp3[32] = { 0 };
/* Init output variables */
g_free (*start_str);
g_free (*stop_str);
g_free (*total_str);
if (start_str)
g_free (*start_str);
if (stop_str)
g_free (*stop_str);
if (total_str)
g_free (*total_str);
*start_str = NULL;
*stop_str = NULL;
*total_str = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment