From 5bb17e980bb3fe4f74c50ec86509bbb3b07c13c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Sat, 11 Jul 2009 00:23:13 +0200 Subject: Removed useless code in loader.c --- HISTORY | 1 + loader.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 30d12f7..4db84c7 100644 --- a/HISTORY +++ b/HISTORY @@ -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 diff --git a/loader.c b/loader.c index 5084faf..6a9b406 100644 --- a/loader.c +++ b/loader.c @@ -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); } -- cgit v1.2.3