diff options
author | Tom Anderson <thomasanderson@chromium.org> | 2018-04-24 11:15:58 -0700 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2018-05-05 17:57:21 +0900 |
commit | 730deada8cf609157d07b7c2bf2985672614c4c0 (patch) | |
tree | b7fce3a24dfcc542b4960ec1e409448a0a31e5fd /src | |
parent | c78afa906699933e87889895ca2039887943b639 (diff) |
Add FONTCONFIG_SYSROOT environment variable
Diffstat (limited to 'src')
-rw-r--r-- | src/fccfg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fccfg.c b/src/fccfg.c index e35c451e..e966e57b 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -2408,7 +2408,10 @@ FcConfigGetSysRoot (const FcConfig *config) return NULL; } - return config->sysRoot; + if (config->sysRoot) + return config->sysRoot; + + return (FcChar8 *) getenv ("FONTCONFIG_SYSROOT"); } void |