r9461: Couple of very small fixes.
[samba.git] / source / pidl / pidl
index 9daf60eff47977547246ea6fc472476065aa4c90..14be05c042db38621f0dd739c9d01f7a3c4a579b 100755 (executable)
@@ -347,6 +347,9 @@ $dcom
        }
 }
 
-foreach my $filename (@ARGV) {
-       process_file($filename);
+if (scalar(@ARGV) == 0) {
+       print "pidl: no input files\n";
+       exit(0);
 }
+
+process_file($_) foreach (@ARGV);