diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | loader.c | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -78,6 +78,7 @@ ____-__-__: Version 1.3 - Fixed crash with FrontendHasLock and FrontendHasSignal (closes #147 - thanks to a.g.prosat at tochka.ru for reporting this) - Replaced asprintf with cString::sprintf in GetFrontend*() +- Removed useless code in loader.c 2009-06-01: Version 1.2 @@ -19,15 +19,12 @@ void cText2SkinLoader::Start(void) { struct dirent ent; struct dirent *result; while ((readdir_r(d, &ent, &result)) == 0 && result != NULL) { - char *path; struct stat buf; if (strcmp(result->d_name, ".") == 0 || strcmp(result->d_name, "..") == 0) continue; - asprintf(&path, "%s/%s", SkinPath().c_str(), result->d_name); if (stat((SkinPath() + "/" + result->d_name).c_str(), &buf) == 0 && S_ISDIR(buf.st_mode)) Load(result->d_name); - free(path); } closedir(d); } |