strdup the database string, dont return it directly

This commit is contained in:
Dana Jansens 2003-03-19 07:20:29 +00:00
parent ef43db32eb
commit ff39eb9ba2

View file

@ -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;
}