]> git.wh0rd.org - fontconfig.git/commitdiff
Using uninitialized (and wrong) variable in FcStrCopyFilename.
authorKeith Packard <keithp@neko.keithp.com>
Sun, 3 Sep 2006 06:09:44 +0000 (23:09 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Sun, 3 Sep 2006 06:09:44 +0000 (23:09 -0700)
A typo from the change in where filename canonicalization occurs.

src/fcstr.c

index 33090140b4fc799a22212470316a8c6742015aca..5faf5790f8ba4e9dd3f1522b0109f16a73e4e8f2 100644 (file)
@@ -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);