Переглянути джерело

FIX: DependenyGraph: Fixed infinite loop if an empty or commented line is encountered.

Sascha Zelzer 14 роки тому
батько
коміт
74cb8067de
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      Utilities/DGraph/DGraph.cpp

+ 1 - 0
Utilities/DGraph/DGraph.cpp

@@ -166,6 +166,7 @@ int main(int argc, char** argv)
     // Skip empty line or commented line
     if (line.isEmpty() || line.startsWith("#"))
       {
+      line = in.readLine();
       continue;
       }