commit | e3b771a63e837b341bbd1e3e7e9c868244506f62 | [log] [tgz] |
---|---|---|
author | Keith Packard <keithp@neko.keithp.com> | Sat Sep 02 23:09:44 2006 -0700 |
committer | Keith Packard <keithp@neko.keithp.com> | Sat Sep 02 23:09:44 2006 -0700 |
tree | 57b15bdce9e0d642f702cc91d840132a9dc81dee | |
parent | 04cedae0d5a720662bdc0de3d4cb97f6c77e7d1a [diff] |
Using uninitialized (and wrong) variable in FcStrCopyFilename. A typo from the change in where filename canonicalization occurs.
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 @@ 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);