summaryrefslogtreecommitdiff
path: root/TAO/utils/catior/catior.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/utils/catior/catior.cpp')
-rw-r--r--TAO/utils/catior/catior.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/utils/catior/catior.cpp b/TAO/utils/catior/catior.cpp
index ccd923a698d..502ea5dc8c6 100644
--- a/TAO/utils/catior/catior.cpp
+++ b/TAO/utils/catior/catior.cpp
@@ -448,6 +448,7 @@ main (int argc, char *argv[])
return -1;
}
+ int have_some_input = 0;
while (!ifstr.eof())
{
char ch;
@@ -459,8 +460,10 @@ main (int argc, char *argv[])
if (ch == '\n' || ifstr.eof ())
break;
aString += ch;
+ have_some_input = 1;
}
-
+ if (have_some_input == 0)
+ break;
ACE_DEBUG ((LM_DEBUG,
"\nhere is the IOR\n%s\n\n",
aString.rep ()));