From e3b771a63e837b341bbd1e3e7e9c868244506f62 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 2 Sep 2006 23:09:44 -0700 Subject: [PATCH] Using uninitialized (and wrong) variable in FcStrCopyFilename. A typo from the change in where filename canonicalization occurs. --- src/fcstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fcstr.c b/src/fcstr.c index 3309014..5faf579 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -770,7 +770,7 @@ FcStrCopyFilename (const FcChar8 *s) return 0; size = strlen ((char *) home) + strlen ((char *) s); full = (FcChar8 *) malloc (size); - if (!new) + if (!full) return 0; strcpy ((char *) full, (char *) home); strcat ((char *) full, (char *) s + 1); -- 2.39.2