Comment and cleanup

This commit is contained in:
lostd 2015-01-27 09:58:32 +02:00
parent 48e3305be8
commit 1295b7f0e6

View file

@ -666,6 +666,7 @@ nochange:
tmp = readln(); tmp = readln();
if (tmp == NULL) if (tmp == NULL)
tmp = xstrdup(ifilter); tmp = xstrdup(ifilter);
/* Check and report regex errors */
r = setfilter(&re, tmp); r = setfilter(&re, tmp);
if (r != 0) { if (r != 0) {
free(tmp); free(tmp);
@ -673,7 +674,6 @@ nochange:
} }
free(filter); free(filter);
filter = tmp; filter = tmp;
filter_re = re;
DPRINTF_S(filter); DPRINTF_S(filter);
/* Save current */ /* Save current */
if (n > 0) if (n > 0)