Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly initialize GError with NULL
ref: https://bugzilla.redhat.com/show_bug.cgi?id=1357213 When g_key_file_load_from_file(... , &error) fails, the error contents is supposed to be set to error. However actually reading g_key_file_load_from_file() implementation shows that unless error is initialized to NULL before calling g_key_file_load_from_file(), the function leaves error unchanged. So afterwards, g_error_free(error) tries to free uninitialized pointer, which causes SIGABRT.
- Loading branch information