remove the unnecessary code
This commit is contained in:
parent
5400bb4fb4
commit
fb3b410998
|
@ -160,12 +160,6 @@ FcMakeTempfile (char *template)
|
||||||
if (_mktemp_s(template, strlen(template) + 1) != 0)
|
if (_mktemp_s(template, strlen(template) + 1) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
fd = FcOpen(template, O_RDWR | O_EXCL | O_CREAT, 0600);
|
fd = FcOpen(template, O_RDWR | O_EXCL | O_CREAT, 0600);
|
||||||
#else
|
|
||||||
/* warn at the runtime for just debugging purpose why something may
|
|
||||||
* goes wrong. mingw may not have one, but it shouldn't be reached since
|
|
||||||
* this function isn't used so far.
|
|
||||||
*/
|
|
||||||
fprintf(stderr, "Fontconfig warning: No secure functions to create a temporary file\n");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
|
|
Loading…
Reference in New Issue