summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--atari/settings.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/atari/settings.c b/atari/settings.c
index 0c87597d3..010680a80 100644
--- a/atari/settings.c
+++ b/atari/settings.c
@@ -414,7 +414,7 @@ static char * toolbar_iconset_popup( int x, int y )
snprintf(fullpath, PATH_MAX-1, "%s/%s", toolbar_folder, ep->d_name );
if (is_dir(fullpath)) {
if (strcmp(ep->d_name, current) == 0)
- selected = navail;
+ selected = navail;
/* store the folder name: */
avail[navail] = malloc( strlen(ep->d_name)+1 );
sprintf( avail[navail], "%s", ep->d_name );
@@ -422,11 +422,6 @@ static char * toolbar_iconset_popup( int x, int y )
if( navail >= MAX_SETS )
break;
}
- if (stat(fullpath, &statbuf) == 0) {
- if (S_ISDIR(statbuf.st_mode)) {
-
- }
- }
}
(void) closedir (dp);
}