projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef43db3
)
strdup the database string, dont return it directly
author
Dana Jansens
<danakj@orodu.net>
Wed, 19 Mar 2003 07:20:29 +0000
(07:20 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 19 Mar 2003 07:20:29 +0000
(07:20 +0000)
engines/openbox/theme.c
patch
|
blob
|
history
diff --git
a/engines/openbox/theme.c
b/engines/openbox/theme.c
index 50e548442eaa4a9afd7742ea35ebd7ce4afcb862..4fc859dacbc109412e6b97502f04103479301c2a 100644
(file)
--- a/
engines/openbox/theme.c
+++ b/
engines/openbox/theme.c
@@
-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;
}