libotutil: Fix a possible uninitialized free() in error path
Spotted by gcc.
This commit is contained in:
parent
b38fb802f9
commit
d0d98d3abe
|
|
@ -69,7 +69,7 @@ ot_keyfile_get_value_with_default (GKeyFile *keyfile,
|
|||
{
|
||||
gboolean ret = FALSE;
|
||||
GError *temp_error = NULL;
|
||||
gs_free char *ret_value;
|
||||
gs_free char *ret_value = NULL;
|
||||
|
||||
ret_value = g_key_file_get_value (keyfile, section, value, &temp_error);
|
||||
if (temp_error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue