diff options
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r-- | vtysh/vtysh_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index 14efa4861..fe8d52fb7 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -309,7 +309,7 @@ vtysh_config_dump (FILE *fp) fprintf (fp, "!\n"); fflush (fp); - for (i = 0; i < vector_max (configvec); i++) + for (i = 0; i < vector_active (configvec); i++) if ((master = vector_slot (configvec, i)) != NULL) { LIST_LOOP (master, config, nn) @@ -335,7 +335,7 @@ vtysh_config_dump (FILE *fp) } } - for (i = 0; i < vector_max (configvec); i++) + for (i = 0; i < vector_active (configvec); i++) if ((master = vector_slot (configvec, i)) != NULL) { list_delete (master); |