Using uninitialized (and wrong) variable in FcStrCopyFilename.

A typo from the change in where filename canonicalization occurs.
This commit is contained in:
Keith Packard 2006-09-02 23:09:44 -07:00
parent 04cedae0d5
commit e3b771a63e
1 changed files with 1 additions and 1 deletions

View 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);