diff options
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index cd47ef1c4..d28c879d5 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -70,6 +70,9 @@ static FILE *vty_open_pager(struct vty *vty) if (vty->is_paged) return vty->of; + if (!vtysh_pager_name) + return NULL; + vty->of_saved = vty->of; vty->of = popen(vtysh_pager_name, "w"); if (vty->of == NULL) { |