summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-06-22 00:19:24 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-06-22 00:19:24 +0000
commit5046f0767250a4c61f0c0d49504e6dc4b40e1e1a (patch)
tree0514ec6b9196fa79adc33cc3428127646eaa3b4c /lib/json.c
parent8ea37652c714edcd913d5dc02a0bfc5968fdc45e (diff)
lib: look at the correct token for json
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/json.c')
-rw-r--r--lib/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/json.c b/lib/json.c
index 186efc9f48..5b7c3e9ffa 100644
--- a/lib/json.c
+++ b/lib/json.c
@@ -34,7 +34,7 @@ use_json (const int argc, struct cmd_token *argv[])
if (argc == 0)
return 0;
- if (argv[argc-1]->arg && strcmp(argv[argc-1]->arg, "json") == 0)
+ if (argv[argc-1]->arg && strmatch (argv[argc-1]->text, "json"))
return 1;
return 0;