git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitweb: Fix uninitialized value when commit message is missing.

From
ESEd Swarthout <ed.swarthout@freescale.com>
Date
Mar 16, 2007, 04:55 UTC
Message-ID
<11740209091385-git-send-email-Ed.Swarthout@freescale.com>
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 27b5970..4771689 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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
-- 
1.5.0.4.403.g4ee1
Message 1 of 1 in “gitweb: Fix uninitialized value when commit message is missing.”
  1. gitweb: Fix uninitialized value when commit message is missing.Ed Swarthout, Mar 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.