noice.c | 4 ---- diff --git a/noice.c b/noice.c index 0f55a8bf5eedaed40c59d84c84ec8e48e0082146..a95ab6fdd4f2bfdfc0dadc895c34d48e2482802c 100644 --- a/noice.c +++ b/noice.c @@ -525,7 +525,6 @@ char *cwd, *newpath; 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 @@ path = newpath; /* Reset filter */ free(filter); filter = xstrdup(ifilter); - cur = 0; goto out; case S_IFREG: bin = openwith(name); @@ -697,7 +695,6 @@ free(filter); filter = tmp; filter_re = re; DPRINTF_S(filter); - cur = 0; goto out; case SEL_NEXT: if (cur < n - 1) @@ -740,7 +737,6 @@ path = newpath; free(filter); filter = xstrdup(ifilter); /* Reset filter */ DPRINTF_S(path); - cur = 0; goto out; } }