From 27f5ac79b234dff754ffaa4ce1e5bb1de5b465fb Mon Sep 17 00:00:00 2001 From: cherierm Date: Mon, 11 Aug 2008 12:04:44 +0000 Subject: [PATCH] Remove all indefinite variables git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5890 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/tesh2/src/fstream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tesh2/src/fstream.c b/tools/tesh2/src/fstream.c index 0a8ef5e60a..c9e7f6c7ce 100644 --- a/tools/tesh2/src/fstream.c +++ b/tools/tesh2/src/fstream.c @@ -986,10 +986,10 @@ fstream_lex_line(fstream_t fstream, context_t context, xbt_os_mutex_t mutex, con } - p = line2 + 2; - - while(p && 1) + while(1) { + p = line2 + 2; + if((p = strchr(p, '$'))) { if(*(p+1) != ' ') -- 2.20.1