From patchwork Thu Apr 2 17:19:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simran Singhal X-Patchwork-Id: 11471159 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3C64292A for ; Thu, 2 Apr 2020 17:22:42 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11BB020757 for ; Thu, 2 Apr 2020 17:22:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KMK00R9R" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11BB020757 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:45126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK3Y9-0005JA-8r for patchwork-qemu-devel@patchwork.kernel.org; Thu, 02 Apr 2020 13:22:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45522) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK3VN-00029g-Bz for qemu-devel@nongnu.org; Thu, 02 Apr 2020 13:19:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jK3VM-0002ZU-3P for qemu-devel@nongnu.org; Thu, 02 Apr 2020 13:19:49 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:43233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jK3VL-0002WW-Tk for qemu-devel@nongnu.org; Thu, 02 Apr 2020 13:19:48 -0400 Received: by mail-pf1-x444.google.com with SMTP id f206so2044603pfa.10 for ; Thu, 02 Apr 2020 10:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=Sd4HKvpMJXeiLcbFDPVmWsncn84n6qzrDO2U7j/YgLc=; b=KMK00R9RJUPzJkf2PTYQky+05tYAy6ZaM3dacWovz7xxxLgyz7t/bn/2x+wAwPbuzj 08kc46aCq7/UaCjsO3n3jre82vJevNRkbAVhy8oCyIvkXQFh5/TNgPKqFjY7D1wpu7i1 x5Om/l0ywhXPLoLZMOi6ASG7fYdCEB1KTslgLSWgCKDF8Bn9OUrXF+9xRZbKDBV3oxVA o6S5vpZfUqwl1t8wGorZMNYAk6uEt8jLMEBOKj0ul1dR2OkR8hAfA7TIMG3i+rCjZmPL WL97fyEC2OjLIHeFKmUXKxvAVxy7LW7aHGysBtVDMvzMRT211rTI4GJ8ijVl9djDu+Ts doaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=Sd4HKvpMJXeiLcbFDPVmWsncn84n6qzrDO2U7j/YgLc=; b=eyT+cfFVqyDe22uo6a/iEcSWwwhYUukpsoyVAoN+lNCJoHT+uByygIEviTHGPMkFLw ltn3pdlFMvMrujxuLbevjQO8u6D3Q1BgUG82coCMxvRMXaDDT7StK1nkQj+Hun7Bx2qx tLTV7Jv7yAOYQBKP0LHs3oqgPmMTx1KTOJ9pQGl0HEcyYKpwdK5w/JhbKtFQZGKPURdw L4VTPJJW4/yGizBaYLsAQx1SiG8fpG21QleOWC4uY0PtEteX95QOhPVT+XfwO5/uv2Xk fC+QY1ZpWhkbsIAG4MbezxZliKJ/bgJe7WpIfJ5WKxpRvf/cLHt1YzNSKzZJB3d74n9e Rnmw== X-Gm-Message-State: AGi0PuY2n9RgebP3VSBB/YcrNoxbAxrCESZx3Old9zzuPxuT6rOiLTUB DadFEZ2c5G/7wT1aAeHjB5w= X-Google-Smtp-Source: APiQypL9zA3kYaaZfErh7gG9f2O45YJP6hVd1c5a3bbviOU+dzL6Sf425h0oNRAFC68ZPb1LcamJ/w== X-Received: by 2002:a65:6101:: with SMTP id z1mr3713424pgu.224.1585847986566; Thu, 02 Apr 2020 10:19:46 -0700 (PDT) Received: from simran-Inspiron-5558 ([2405:205:1380:eac:4926:6e0b:60ca:635c]) by smtp.gmail.com with ESMTPSA id i124sm4118296pfg.14.2020.04.02.10.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 10:19:45 -0700 (PDT) Date: Thu, 2 Apr 2020 22:49:40 +0530 From: Simran Singhal To: qemu-devel@nongnu.org, Markus Armbruster Subject: [PATCH v2] qobject: json-streamer: Change bracket_count to brace_count Message-ID: <20200402171940.GA21781@simran-Inspiron-5558> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Hajnoczi , Julia Suvorova Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Change the "parser->bracket_count >= 0" to "parser->brace_count >= 0" to fix the typo. Signed-off-by: Simran Singhal Reviewed-by: Eric Blake --- Changes in v2: -No need to remove the duplicate occurence of "parser->bracket_count >= 0" but actually it is a typo and one occurence should be "parser->brace_count >= 0". qobject/json-streamer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qobject/json-streamer.c b/qobject/json-streamer.c index 47dd7ea576..b93d97b995 100644 --- a/qobject/json-streamer.c +++ b/qobject/json-streamer.c @@ -85,7 +85,7 @@ void json_message_process_token(JSONLexer *lexer, GString *input, g_queue_push_tail(&parser->tokens, token); if ((parser->brace_count > 0 || parser->bracket_count > 0) - && parser->bracket_count >= 0 && parser->bracket_count >= 0) { + && parser->brace_count >= 0 && parser->bracket_count >= 0) { return; }