summaryrefslogtreecommitdiff
path: root/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c3
1 files changed, 0 insertions, 3 deletions
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);
}