* [PATCH] gitweb: Fix uninitialized value when commit message is missing.
@ 2007-03-16 4:55 Ed Swarthout
0 siblings, 0 replies; only message in thread
From: Ed Swarthout @ 2007-03-16 4:55 UTC (permalink / raw)
To: git; +Cc: Ed Swarthout
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-16 4:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16 4:55 [PATCH] gitweb: Fix uninitialized value when commit message is missing Ed Swarthout
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).