From 6f7fa45a9943d83bd0ec6e7c59673b496d433c05 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 18 May 2014 00:56:41 +0200 Subject: [PATCH] WUtil: remove unnecessary check in WMGetStandardUserDefaults (Coverity #50191) As pointed by Coverity, the return value of the function 'wdefaultspathfordomain' cannot be NULL, so it is not necessary to check for that. Signed-off-by: Christophe CURIS --- WINGs/userdefaults.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WINGs/userdefaults.c b/WINGs/userdefaults.c index 6b55e8cf..269e43e6 100644 --- a/WINGs/userdefaults.c +++ b/WINGs/userdefaults.c @@ -303,8 +303,7 @@ WMUserDefaults *WMGetStandardUserDefaults(void) if (!domain) domain = WMCreatePLDictionary(NULL, NULL); - if (path) - wfree(path); + wfree(path); defaults->appDomain = domain; -- 2.11.4.GIT