1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-03 12:24:17 +01:00

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 <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-05-18 00:56:41 +02:00
committed by Carlos R. Mafra
parent 8f9b843990
commit 6f7fa45a99

View File

@@ -303,8 +303,7 @@ WMUserDefaults *WMGetStandardUserDefaults(void)
if (!domain)
domain = WMCreatePLDictionary(NULL, NULL);
if (path)
wfree(path);
wfree(path);
defaults->appDomain = domain;