X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor-pkg-ubuntu.git;a=blobdiff_plain;f=src%2Fpxdg.c;fp=src%2Fpxdg.c;h=14c3021fa9a2026dafcaf02c52264e48402af7c7;hp=6ef9d28a294cc6e9bb689914c641af574eb9e31c;hb=9aa9c8d3823d79755ddd1aa49b9af6198e24d4e2;hpb=75fa49ffb0c9c8b60328c13ec8613299d094a2e5 diff --git a/src/pxdg.c b/src/pxdg.c index 6ef9d28..14c3021 100644 --- a/src/pxdg.c +++ b/src/pxdg.c @@ -77,14 +77,13 @@ static GKeyFile *get_key_file(const char *path) | G_KEY_FILE_KEEP_TRANSLATIONS, NULL); - if (ret) { + if (ret) return kfile; - } else { - log_err("Failed to parse: %s", path); - g_key_file_free(kfile); - return NULL; - } + log_err("Failed to parse: %s", path); + + g_key_file_free(kfile); + return NULL; } static int is_user_desktop_autostarted(GKeyFile *f)