From: Christophe CURIS <christophe.cu...@free.fr>

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 <christophe.cu...@free.fr>
---
 WINGs/userdefaults.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/WINGs/userdefaults.c b/WINGs/userdefaults.c
index 6b55e8c..269e43e 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;
 
-- 
1.9.2


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to