aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar lostd <lostd@2f30.org>2014-11-26 17:39:19 +0200
committerGravatar lostd <lostd@2f30.org>2014-11-26 17:43:45 +0200
commit55d45dd39d090dfcc1d05eac082b713774af39a7 (patch)
tree655e2443c2b951f1202338d56cc10452e877b48e
parent3d256b8bf2c0a9e61d937e86c7421b4bbcb67c18 (diff)
downloadnnn-55d45dd39d090dfcc1d05eac082b713774af39a7.tar.gz
Don't care about cur, it defaults to 0
-rw-r--r--noice.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/noice.c b/noice.c
index 0f55a8b..a95ab6f 100644
--- a/noice.c
+++ b/noice.c
@@ -525,7 +525,6 @@ browse(const char *ipath, const char *ifilter)
struct stat sb;
char *oldpath;
- cur = 0;
oldpath = NULL;
begin:
/* Path and filter should be malloc(3)-ed strings at all times */
@@ -662,7 +661,6 @@ nochange:
/* Reset filter */
free(filter);
filter = xstrdup(ifilter);
- cur = 0;
goto out;
case S_IFREG:
bin = openwith(name);
@@ -697,7 +695,6 @@ nochange:
filter = tmp;
filter_re = re;
DPRINTF_S(filter);
- cur = 0;
goto out;
case SEL_NEXT:
if (cur < n - 1)
@@ -740,7 +737,6 @@ nochange:
free(filter);
filter = xstrdup(ifilter); /* Reset filter */
DPRINTF_S(path);
- cur = 0;
goto out;
}
}