Skip to contentSkip to conversation

gitweb: Fix uninitialized value when commit message is missing.

PATCH New Ed Swarthout 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitweb: Fix uninitialized value when commit message is missing.

---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
gitweb/gitweb.perl +1 -1
index 27b5970..4771689 100755
@@ -1346,7 +1346,7 @@ sub parse_commit_text {
 			last;
 		}
 	}
-	if ($co{'title'} eq "") {
+	if (!defined($co{'title'}) || $co{'title'} eq "") {
 		$co{'title'} = $co{'title_short'} = '(no commit message)';
 	}
 	# remove added spaces
Signature · 1 line
1.5.0.4.403.g4ee1