summaryrefslogtreecommitdiff
path: root/win32/bin/search.bat
diff options
context:
space:
mode:
Diffstat (limited to 'win32/bin/search.bat')
-rw-r--r--win32/bin/search.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/bin/search.bat b/win32/bin/search.bat
index 0bb123759f..88e83e5040 100644
--- a/win32/bin/search.bat
+++ b/win32/bin/search.bat
@@ -653,7 +653,7 @@ sub read_rc
print "reading RC file: $file\n" if $show;
- while ($_ = ($use_default ? shift(@default) : <RC>)) {
+ while (defined($_ = ($use_default ? shift(@default) : <RC>))) {
$ln = ++$line_num; ## note starting line num.
$_ .= <RC>, $line_num++ while s/\\\n?$/\n/; ## allow continuations
next if /^\s*(#.*)?$/; ## skip blank or comment-only lines.