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
|
@ -1607,7 +1607,7 @@ search_address (const gchar *text,
|
|||
|
||||
if (text && text[0] != '\0')
|
||||
{
|
||||
g_autoptr(GSocketConnectable) conn;
|
||||
g_autoptr(GSocketConnectable) conn = NULL;
|
||||
gchar *scheme = NULL;
|
||||
gchar *host = NULL;
|
||||
gint port;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue