diff options
-rw-r--r-- | src/fontfile/fontdir.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fontfile/fontdir.c b/src/fontfile/fontdir.c index f4edc01..c8a6a0e 100644 --- a/src/fontfile/fontdir.c +++ b/src/fontfile/fontdir.c @@ -125,10 +125,7 @@ FontFileMakeDir(const char *dirName, int size) dirlen = strlen(dirName); attriblen = 0; } - if (dirName[dirlen - 1] != '/') -#ifdef NCD - if (dirlen) /* leave out slash for builtins */ -#endif + if (dirlen && dirName[dirlen - 1] != '/') needslash = 1; dir = malloc(sizeof *dir + dirlen + needslash + 1 + (attriblen ? attriblen + 1 : 0)); |