mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-09 11:12:29 +02:00
Fixed return of WMGetUDStringForKey to be only a reference, not an allocated
string.
This commit is contained in:
1 parent
df7998e9e1
commit
6e97e4cae5
3 files changed
+6
-1
No files matched your search
@@ -369,7 +369,7 @@ WMGetUDStringForKey(WMUserDefaults *database, char *defaultName)
|
||||
if (!PLIsString(val))
|
||||
return NULL;
|
||||
|
||||
return wstrdup(PLGetString(val));
|
||||
return PLGetString(val);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user