gstreamer/uri_handler: Only assign to GError**s if they're not NULL

This commit is contained in:
Sebastian Dröge 2021-05-15 10:41:34 +03:00
parent 840a1129ba
commit 11a85449e7

View file

@ -146,7 +146,9 @@ unsafe extern "C" fn uri_handler_set_uri<T: URIHandlerImpl>(
) { ) {
Ok(()) => true.into_glib(), Ok(()) => true.into_glib(),
Err(error) => { Err(error) => {
if !err.is_null() {
*err = error.into_raw(); *err = error.into_raw();
}
false.into_glib() false.into_glib()
} }
} }