From 5109fdb1e6867439d45da5a7cc8effb9bcc75d85 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 17 Aug 2008 15:05:51 +0100 Subject: [PATCH] [xlib] Return the integer from XGetDefault(). If the default value does not match a fontconfig constant, actually return the parsed token. --- src/cairo-xlib-screen.c | 3 +-- 1 file changed, 1 insertion(+), 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; }