element: Don't increment NULL pointers

Trivial workaround for coverity false warning.

CID 1394488, 1394487.
This commit is contained in:
Sebastian Dröge 2016-11-23 18:57:17 +02:00
parent 94cd315595
commit 2872ae21c3

View file

@ -1026,8 +1026,11 @@ gst_element_is_valid_request_template_name (const gchar * templ_name,
g_free (target);
}
templ_name++;
name++;
/* otherwise we increment these from NULL to 1 */
if (next_specifier) {
templ_name++;
name++;
}
} while (next_specifier);
return TRUE;