summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2017-12-07 14:16:32 +0100
committerBert Münnich <ber.t@posteo.de>2017-12-07 14:16:32 +0100
commit30e235662251d24e855ef12eaf9a5a338fbe5d65 (patch)
tree6121eb58566b27ddb5120df8d118578f7d023e6e /main.c
parent004fcd5c5b0bbd74b643fc1959102a274593d257 (diff)
downloadnsxiv-30e235662251d24e855ef12eaf9a5a338fbe5d65.tar.zst
Remove obsolete files[].base
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/main.c b/main.c
index a2c37e2..aa25015 100644
--- a/main.c
+++ b/main.c
@@ -103,7 +103,6 @@ void cleanup(void)
void check_add_file(char *filename, bool given)
{
char *path;
- const char *bn;
if (*filename == '\0')
return;
@@ -124,10 +123,6 @@ void check_add_file(char *filename, bool given)
files[fileidx].name = estrdup(filename);
files[fileidx].path = path;
- if ((bn = strrchr(files[fileidx].name , '/')) != NULL && bn[1] != '\0')
- files[fileidx].base = ++bn;
- else
- files[fileidx].base = files[fileidx].name;
if (given)
files[fileidx].flags |= FF_WARN;
fileidx++;