fixed error in counting lines when the shader input file isn't a shader_test
authorEleni Maria Stea <estea@igalia.com>
Sun, 5 May 2019 19:27:38 +0000 (22:27 +0300)
committerEleni Maria Stea <estea@igalia.com>
Sun, 5 May 2019 19:27:38 +0000 (22:27 +0300)
src/main.cc

index 1237966..deb7c3b 100644 (file)
@@ -228,10 +228,10 @@ static int sdr_done(int id, void *closure)
 
        if(!start) {
                start = buf;
+       } else {
+               start += strlen(FSDR_START_TAG);
        }
 
-       start += strlen(FSDR_START_TAG);
-
        char *end = strstr(start, "\n[");
        if(end)
                end[1] = '\0';