diff options
Diffstat (limited to 'lib/vty.c')
| -rw-r--r-- | lib/vty.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -120,9 +120,11 @@ bool vty_set_include(struct vty *vty, const char *regexp) bool ret = true; char errbuf[256]; - if (!regexp && vty->filter) { - regfree(&vty->include); - vty->filter = false; + if (!regexp) { + if (vty->filter) { + regfree(&vty->include); + vty->filter = false; + } return true; } |
