strdup the database string, dont return it directly
This commit is contained in:
parent
ef43db32eb
commit
ff39eb9ba2
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ gboolean read_string(XrmDatabase db, char *rname, char **value)
|
|||
|
||||
if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) &&
|
||||
retvalue.addr != NULL) {
|
||||
*value = retvalue.addr;
|
||||
*value = g_strdup(retvalue.addr);
|
||||
ret = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue