diff options
author | Thomas Günther <tom@toms-cafe.de> | 2009-07-11 00:23:13 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-07-11 00:23:13 +0200 |
commit | 5bb17e980bb3fe4f74c50ec86509bbb3b07c13c0 (patch) | |
tree | 440dc899f5df5fc00076512945ba163a5603fa0b /loader.c | |
parent | 747ba59e743e4d3b5b1265c0e755a4b7951d2fef (diff) | |
download | vdr-plugin-text2skin-5bb17e980bb3fe4f74c50ec86509bbb3b07c13c0.tar.gz vdr-plugin-text2skin-5bb17e980bb3fe4f74c50ec86509bbb3b07c13c0.tar.bz2 |
Removed useless code in loader.c
Diffstat (limited to 'loader.c')
-rw-r--r-- | loader.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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); } |