summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2017-06-26 14:18:56 -0500
committerGitHub <noreply@github.com>2017-06-26 14:18:56 -0500
commitf30a73277c8ce6496f4d642de0ec6232874afd74 (patch)
tree0514ec6b9196fa79adc33cc3428127646eaa3b4c /lib/json.c
parent8ea37652c714edcd913d5dc02a0bfc5968fdc45e (diff)
parent5046f0767250a4c61f0c0d49504e6dc4b40e1e1a (diff)
Merge pull request #749 from qlyoung/fix-json-cli
lib: look at the correct token for json
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;