]> git.proxmox.com Git - mirror_frr.git/blobdiff - vtysh/vtysh_main.c
lib: fix segfault on freebsd when using vsnprintf() incorrectly
[mirror_frr.git] / vtysh / vtysh_main.c
index 7e979f2c8f39a5dd9fd0fdec8b7f87d5b7344f73..2e4510a45a876be3442567017e82e3e6bf356ad9 100644 (file)
@@ -596,7 +596,6 @@ int main(int argc, char **argv, char **env)
                        vtysh_execute("enable");
 
                while (cmd != NULL) {
-                       int ret;
                        char *eol;
 
                        while ((eol = strchr(cmd->line, '\n')) != NULL) {
@@ -662,7 +661,7 @@ int main(int argc, char **argv, char **env)
        /* Boot startup configuration file. */
        if (boot_flag) {
                vtysh_flock_config(frr_config);
-               int ret = vtysh_read_config(frr_config);
+               ret = vtysh_read_config(frr_config);
                vtysh_unflock_config();
                if (ret) {
                        fprintf(stderr,
@@ -676,8 +675,6 @@ int main(int argc, char **argv, char **env)
                        exit(0);
        }
 
-       vtysh_pager_init();
-
        vtysh_readline_init();
 
        vty_hello(vty);