From 5046f0767250a4c61f0c0d49504e6dc4b40e1e1a Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 22 Jun 2017 00:19:24 +0000 Subject: [PATCH] lib: look at the correct token for json Signed-off-by: Quentin Young --- lib/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5