small fixes

This commit is contained in:
Linus Dierheimer
2021-05-02 21:45:47 +02:00
parent 88d2530460
commit bd2e1da3b4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,12 +41,12 @@ static const char* getDConfValue(DConfData* data, const char* schemaName, const
ffStrbufAppendC(&dconfStyleKey, '/');
ffStrbufAppendTransformS(&dconfStyleKey, schemaName, transformGSettingsToDConf);
if(path == NULL || *path != '/')
if(path != NULL && *path != '/')
ffStrbufAppendC(&dconfStyleKey, '/');
ffStrbufAppendTransformS(&dconfStyleKey, path, transformGSettingsToDConf);
if(path != NULL && dconfStyleKey.chars[dconfStyleKey.length - 1] != '/')
if(dconfStyleKey.chars[dconfStyleKey.length - 1] != '/')
ffStrbufAppendC(&dconfStyleKey, '/');
ffStrbufAppendS(&dconfStyleKey, key);