Skip to content

Commit 4bce45b

Browse files
committed
Merge pull request godotengine#90588 from ajreckof/Fix-infinite-while-loop-on-empty-added-file
Fix infinite while loop on empty added file.
2 parents dae5109 + d3d4b2e commit 4bce45b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/scripts/copyright_headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
line = fileread.readline()
7474
header_done = False
7575

76-
while line.strip() == "": # Skip empty lines at the top
76+
while line.strip() == "" and line != "": # Skip empty lines at the top
7777
line = fileread.readline()
7878

7979
if line.find("/**********") == -1: # Godot header starts this way

0 commit comments

Comments
 (0)