summaryrefslogtreecommitdiff
path: root/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader.c b/loader.c
index 73f970b..91566cb 100644
--- a/loader.c
+++ b/loader.c
@@ -16,7 +16,7 @@ void cText2SkinLoader::Start(void) {
struct dirent *result;
d = opendir(SkinPath().c_str());
if (d) {
- while ((result = readdir(p)) != NULL) {
+ while ((result = readdir(d)) != NULL) {
struct stat buf;
if (strcmp(result->d_name, ".") == 0 || strcmp(result->d_name, "..") == 0)
continue;