[MDEV-23941] mariadb-10.5.6/strings/json_lib.c:913:12: style: Suspicious condition Created: 2020-10-08  Updated: 2020-10-23  Resolved: 2020-10-23

Status: Closed
Project: MariaDB Server
Component/s: JSON
Affects Version/s: 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.2.35, 10.3.26, 10.4.16, 10.5.7

Type: Bug Priority: Trivial
Reporter: David Binderman Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 0
Labels: None


 Description   

mariadb-10.5.6/strings/json_lib.c:913:12: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition]

Source code is

  if ((c_len= json_next_char(&j->s) > 0))



 Comments   
Comment by Vicențiu Ciorbaru [ 2020-10-12 ]

Thanks for the bug report. A fix will be pushed soon to 10.2.

Generated at Thu Feb 08 09:26:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.