summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-06-29 11:06:15 -0400
committerGitHub <noreply@github.com>2017-06-29 11:06:15 -0400
commit0bc44f61c942bc606c66407f4dfeca6e7b724abc (patch)
tree8228d692f1ef64c6ceea6cb1dec30e363f162082 /lib
parent0eef52fd9503ccefb61e27e0e928ebf3d346a66e (diff)
parent55f91488121370cbfe9ccb610d91c28192b69923 (diff)
Merge pull request #754 from qlyoung/fix-argv-arg
use argv->text where appropriate
Diffstat (limited to 'lib')
-rw-r--r--lib/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c
index 56fedf0914..2c022a0db7 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1534,8 +1534,8 @@ DEFUN (config_write,
struct stat conf_stat;
// if command was 'write terminal' or 'show running-config'
- if (argc == 2 && (!strcmp(argv[idx_type]->text, "terminal") ||
- !strcmp(argv[0]->text, "show")))
+ if (argc == 2 && (strmatch(argv[idx_type]->text, "terminal") ||
+ strmatch(argv[0]->text, "show")))
{
vty_write_config (vty);
return CMD_SUCCESS;