From ca2fde5502812716729e0043c0ded825a1a33f4a Mon Sep 17 00:00:00 2001 From: Vadim Kuznetsov Date: Mon, 30 Sep 2024 19:15:25 +0300 Subject: [PATCH] Fixed infinite loop when reading STDIN --- src/ucs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ucs.cpp b/src/ucs.cpp index b9f0fa13..a1ca2e95 100644 --- a/src/ucs.cpp +++ b/src/ucs.cpp @@ -161,7 +161,7 @@ int main (int argc, char ** argv) { module::registerDynamicModules (projPath, vamodules); } - else { //no argument, look into netlist + else if (infile != NULL) { //no argument, look into netlist std::string sLine = ""; std::ifstream file;