libmm-glib,modem: add missing input argument checks

This commit is contained in:
Aleksander Morgado
2021-06-24 15:39:50 +02:00
parent b0f40cf966
commit 059f13ffd3

View File

@@ -334,6 +334,8 @@ mm_modem_get_supported_capabilities (MMModem *self,
guint *n_capabilities)
{
g_return_val_if_fail (MM_IS_MODEM (self), FALSE);
g_return_val_if_fail (capabilities != NULL, FALSE);
g_return_val_if_fail (n_capabilities != NULL, FALSE);
return ensure_internal_supported_capabilities (self, capabilities, n_capabilities);
}