From a7f7fc80d7a24fe1bcb847dc16b2bee62f848f25 Mon Sep 17 00:00:00 2001 From: navarrop Date: Wed, 23 Jun 2010 13:52:29 +0000 Subject: [PATCH] Those variables must be set here. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7921 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/tesh/tesh.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index 1b3e1fb046..2b1068f93f 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -85,12 +85,12 @@ static void handle_line(const char *filepos, char *line) static void handle_suite(const char *filename, FILE * IN) { size_t len; - int blankline = 1; - int linelen = 0; + int blankline; + int linelen; char *line = NULL; int line_num = 0; char file_pos[256]; - int to_be_continued = 0; + int to_be_continued; int buffbegin = 0; xbt_strbuff_t buff = NULL; @@ -101,6 +101,8 @@ static void handle_suite(const char *filename, FILE * IN) line_num++; /* Count the line length while checking wheather it's blank */ + blankline = 1; + linelen = 0; while (line[linelen] != '\0') { if (line[linelen] != ' ' && line[linelen] != '\t' @@ -123,6 +125,7 @@ static void handle_suite(const char *filename, FILE * IN) } /* Deal with \ at the end of the line, and call handle_line on result */ + to_be_continued = 0; if (linelen > 1 && line[linelen - 2] == '\\') { if (linelen > 2 && line[linelen - 3] == '\\') { /* Damn. Escaped \ */ -- 2.20.1