diff options
-rw-r--r-- | src/fcstr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fcstr.c b/src/fcstr.c index 57071724..024dae32 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -924,12 +924,16 @@ FcStrBuildFilename (const FcChar8 *path, ...) { va_list ap; - FcStrSet *sset = FcStrSetCreate (); + FcStrSet *sset; FcStrList *list; FcChar8 *s, *ret = NULL, *p; size_t len = 0; - if (!sset || !path) + if (!path) + return NULL; + + sset = FcStrSetCreate (); + if (!sset) return NULL; if (!FcStrSetAdd (sset, path)) |