Initialize autoptr values to NULL.
These cases were safe, but if the code changed this risked freeing uninitialized memory.
This commit is contained in:
parent
c6965d9e30
commit
9a2e821fe5
7 changed files with 9 additions and 9 deletions
|
@ -222,7 +222,7 @@ static inline gboolean
|
|||
get_cached_rfkill_property (CcWifiPanel *self,
|
||||
const gchar *property)
|
||||
{
|
||||
g_autoptr (GVariant) result;
|
||||
g_autoptr(GVariant) result = NULL;
|
||||
|
||||
result = g_dbus_proxy_get_cached_property (self->rfkill_proxy, property);
|
||||
return result ? g_variant_get_boolean (result) : FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue