summaryrefslogtreecommitdiff
path: root/src/fccfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fccfg.c')
-rw-r--r--src/fccfg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fccfg.c b/src/fccfg.c
index e35c451..e966e57 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