aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2016-02-10 15:09:04 +0000
committersin <sin@2f30.org>2016-02-10 15:09:04 +0000
commit414ea845bbd4eac43dada7dc97f45556e1f8a060 (patch)
treed2264c8fc72d12ad4b9dd3b9572390e598303bd0 /noice.c
parent43aebe099812bcce3e0b223d1ec8f50141351b3f (diff)
downloadnoice-414ea845bbd4eac43dada7dc97f45556e1f8a060.tar.gz
Use dents name directly like we do in other places
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/noice.c b/noice.c
index a95d8ff..4431773 100644
--- a/noice.c
+++ b/noice.c
@@ -570,7 +570,7 @@ void
browse(char *ipath, char *ifilter)
{
char newpath[PATH_MAX];
- char *name, *bin, *dir, *tmp, *run, *env;
+ char *bin, *dir, *tmp, *run, *env;
struct stat sb;
regex_t re;
int r, fd;
@@ -613,8 +613,7 @@ nochange:
if (n == 0)
goto nochange;
- name = dents[cur].name;
- mkpath(path, name, newpath, sizeof(newpath));
+ mkpath(path, dents[cur].name, newpath, sizeof(newpath));
DPRINTF_S(newpath);
/* Get path info */
@@ -730,10 +729,9 @@ nochange:
initcurses();
break;
case SEL_RUNARG:
- name = dents[cur].name;
run = xgetenv(env, run);
exitcurses();
- spawn(run, name, path);
+ spawn(run, dents[cur].name, path);
initcurses();
break;
}
Un proyecto texto-plano.xyz