Skip to content
Snippets Groups Projects
Commit d60e63d8 authored by Nikita Pettik's avatar Nikita Pettik
Browse files

json: fix assert typo in json_path_cmp()

   284  int
   285  json_path_cmp(const char *a, int a_len, const char *b, int b_len,
   286                int index_base)
   287  {

  ...

   304          /* Paths a and b must be valid. */
   305          assert(rc_b == 0 && rc_b == 0);

Obviously (according to the comment) author implied that both rc_a == 0
and rc_b == 0. Let's fix this small typo.
parent 82913537
No related branches found
No related tags found
No related merge requests found
......@@ -291,7 +291,7 @@ json_path_cmp(const char *a, int a_len, const char *b, int b_len,
return rc;
}
/* Paths a and b must be valid. */
assert(rc_b == 0 && rc_b == 0);
assert(rc_a == 0 && rc_b == 0);
/*
* The parser stopped because the end of one of the paths
* was reached. As JSON_TOKEN_END > JSON_TOKEN_{NUM, STR},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment