summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-screen.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-08-17 15:05:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-08-17 15:19:19 +0100
commit5109fdb1e6867439d45da5a7cc8effb9bcc75d85 (patch)
tree5efc6be083cc265253f657577c70144fdbe38255 /src/cairo-xlib-screen.c
parent4f4621adbfa67fb61b02e7e650a59a96a8c974ef (diff)
[xlib] Return the integer from XGetDefault().
If the default value does not match a fontconfig constant, actually return the parsed token.
Diffstat (limited to 'src/cairo-xlib-screen.c')
-rw-r--r--src/cairo-xlib-screen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c
index ebce8a2f9..7ce252c77 100644
--- a/src/cairo-xlib-screen.c
+++ b/src/cairo-xlib-screen.c
@@ -106,7 +106,6 @@ get_integer_default (Display *dpy,
const char *option,
int *value)
{
- int i;
char *v, *e;
v = XGetDefault (dpy, "Xft", option);
@@ -116,7 +115,7 @@ get_integer_default (Display *dpy,
return TRUE;
#endif
- i = strtol (v, &e, 0);
+ *value = strtol (v, &e, 0);
if (e != v)
return TRUE;
}