From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44973 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEqcJ-0002IS-H0 for qemu-devel@nongnu.org; Wed, 19 May 2010 17:15:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEqcE-0007Ba-Ky for qemu-devel@nongnu.org; Wed, 19 May 2010 17:15:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65529) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEqcE-0007BW-8b for qemu-devel@nongnu.org; Wed, 19 May 2010 17:15:46 -0400 From: Luiz Capitulino Date: Wed, 19 May 2010 18:15:28 -0300 Message-Id: <1274303733-3700-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1274303733-3700-1-git-send-email-lcapitulino@redhat.com> References: <1274303733-3700-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 1/6] json-lexer: Initialize 'x' and 'y' List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: qemu-devel@nongnu.org The 'lexer' variable is passed by the caller, it can contain anything (eg. garbage). Signed-off-by: Luiz Capitulino --- json-lexer.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/json-lexer.c b/json-lexer.c index 9d64920..0b145d1 100644 --- a/json-lexer.c +++ b/json-lexer.c @@ -275,6 +275,7 @@ void json_lexer_init(JSONLexer *lexer, JSONLexerEmitter func) lexer->emit = func; lexer->state = IN_START; lexer->token = qstring_new(); + lexer->x = lexer->y = 0; } static int json_lexer_feed_char(JSONLexer *lexer, char ch) -- 1.7.1.86.g0e460