X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a8364b1c1c33a8b376e06812c9a54b0830f11d63..27f5ac79b234dff754ffaa4ce1e5bb1de5b465fb:/tools/tesh2/src/fstream.c 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) != ' ')