#ifdef _WIN32
if (fontconfig_path[0] == '\0')
{
+ char *p;
if(!GetModuleFileName(NULL, fontconfig_path, sizeof(fontconfig_path)))
goto bail1;
- char *p = strrchr (fontconfig_path, '\\');
+ p = strrchr (fontconfig_path, '\\');
if (p) *p = '\0';
strcat (fontconfig_path, "\\fonts");
}
#ifdef _WIN32
if (strcmp (data, "CUSTOMFONTDIR") == 0)
{
+ char *p;
FcStrFree (data);
data = malloc (1000);
if (!data)
FcStrFree (data);
break;
}
- char *p = strrchr (data, '\\');
+ p = strrchr (data, '\\');
if (p) *p = '\0';
strcat (data, "\\fonts");
}