remove unused variable

This commit is contained in:
Tuan PM 2017-01-12 10:55:21 +07:00
parent 8be2c20a4f
commit b64454b7dd

View file

@ -178,7 +178,7 @@ static bool process_directory(const char *direcotry)
{ {
DIR *dp; DIR *dp;
struct dirent *ep; struct dirent *ep;
char path[256], *filename, *file_ptr; char path[256], *filename;
dp = opendir(direcotry); dp = opendir(direcotry);
if (dp != NULL) { if (dp != NULL) {
@ -198,7 +198,6 @@ static bool process_directory(const char *direcotry)
continue; // not a regular file continue; // not a regular file
} }
sprintf(path, "%s/%s", direcotry, ep->d_name); sprintf(path, "%s/%s", direcotry, ep->d_name);
filename = path;
filename = strchr(path, '/'); filename = strchr(path, '/');
filename = filename ? &filename[1] : path; filename = filename ? &filename[1] : path;