Merge pull request #39 from kallisti5/master
ay_to_strv: Prevent dereferencing a NULL pointer.master-1.22
commit
93f602af68
|
@ -82,7 +82,8 @@ ay_to_strv (GVariant *variant,
|
||||||
data = g_variant_get_fixed_array (variant, &data_len, sizeof (char));
|
data = g_variant_get_fixed_array (variant, &data_len, sizeof (char));
|
||||||
if (data_len == 0 || data_len > G_MAXSSIZE)
|
if (data_len == 0 || data_len > G_MAXSSIZE)
|
||||||
{
|
{
|
||||||
*argc = 0;
|
if (argc != NULL)
|
||||||
|
*argc = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue