{"thread":{"id":"7266","subject":"[PATCH] gitweb: Fix uninitialized value when commit message is missing.","startedAt":"2007-03-16T04:55:09Z","lastAt":"2007-03-16T04:55:09Z","messageCount":1,"participants":["Ed Swarthout"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"37202","messageId":"11740209091385-git-send-email-Ed.Swarthout@freescale.com","threadId":"7266","inReplyTo":null,"subject":"[PATCH] gitweb: Fix uninitialized value when commit message is missing.","fromName":"Ed Swarthout","fromEmail":"ed.swarthout@freescale.com","sentAt":"2007-03-16T04:55:09Z","receivedAt":"2007-03-16T04:55:09Z","isPatch":true,"sender":{"key":"ed.swarthout@freescale.com","avatar":null},"body":"\nSigned-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>\n---\n gitweb/gitweb.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 27b5970..4771689 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -1346,7 +1346,7 @@ sub parse_commit_text {\n \t\t\tlast;\n \t\t}\n \t}\n-\tif ($co{'title'} eq \"\") {\n+\tif (!defined($co{'title'}) || $co{'title'} eq \"\") {\n \t\t$co{'title'} = $co{'title_short'} = '(no commit message)';\n \t}\n \t# remove added spaces\n-- \n1.5.0.4.403.g4ee1\n"}]}