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
|
@ -343,7 +343,7 @@ monitor_labeler_show (CcDisplayPanel *self)
|
|||
static void
|
||||
ensure_monitor_labels (CcDisplayPanel *self)
|
||||
{
|
||||
g_autoptr(GList) windows;
|
||||
g_autoptr(GList) windows = NULL;
|
||||
GList *w;
|
||||
|
||||
windows = gtk_window_list_toplevels ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue