[xlib] Return the integer from XGetDefault().

If the default value does not match a fontconfig constant, actually return
the parsed token.
This commit is contained in:
Chris Wilson 2008-08-17 15:05:51 +01:00
parent 4f4621adbf
commit 5109fdb1e6

View file

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