summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-07-11 00:23:13 +0200
committerThomas Günther <tom@toms-cafe.de>2009-07-11 00:23:13 +0200
commit5bb17e980bb3fe4f74c50ec86509bbb3b07c13c0 (patch)
tree440dc899f5df5fc00076512945ba163a5603fa0b
parent747ba59e743e4d3b5b1265c0e755a4b7951d2fef (diff)
downloadvdr-plugin-text2skin-5bb17e980bb3fe4f74c50ec86509bbb3b07c13c0.tar.gz
vdr-plugin-text2skin-5bb17e980bb3fe4f74c50ec86509bbb3b07c13c0.tar.bz2
Removed useless code in loader.c
-rw-r--r--HISTORY1
-rw-r--r--loader.c3
2 files changed, 1 insertions, 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);
}