X-Git-Url: http://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=5c1e07fec97e34a94331b6b47e25c98f2b2e4cce;hpb=4c50d430bea4b8462b0ae7ab70baf3f538f87718 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)