about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scout.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/scout.cc b/scout.cc
index 6c3ddb5..3ef6002 100644
--- a/scout.cc
+++ b/scout.cc
@@ -1,5 +1,5 @@
 // Patch's jump destinations searcher
-// Copyright (C) 2024  Nguyễn Gia Phong
+// Copyright (C) 2024-2025  Nguyễn Gia Phong
 //
 // This file is part of taosc.
 //
@@ -244,9 +244,9 @@ main (int argc, char** argv)
     }
   std::vector<Function*> functions;
   block->getFuncs (functions);
-  if (functions.size () != 1)
+  if (functions.size () < 1)
     {
-      std::cerr << "0 or multiple functions containing instruction found\n";
+      std::cerr << "found no function containing instruction\n";
       return -1;
     }
   for (auto* fun : functions)