Skip to contentSkip to conversation

get_maintainer: Use a default "unknown" S: status/role

PATCH New Joe Perches 1 participant 1 message Feb 28, 2012 GET_MAINTAINER script

lore
Share & tools
lore

Joe Perches

author maintainer
#0 lore raw

PATCH 1/1 get_maintainer: Use a default "unknown" S: status/role

When an "S:" status line is unavailable, use a default "unknown" role.

---
 scripts/get_maintainer.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/get_maintainer.pl +1 -1
index f32a04c..f5b1f3a 100755
@@ -931,7 +931,7 @@ sub get_maintainer_role {
     my $start = find_starting_index($index);
     my $end = find_ending_index($index);
 
-    my $role;
+    my $role = "unknown";
     my $subsystem = $typevalue[$start];
     if (length($subsystem) > 20) {
 	$subsystem = substr($subsystem, 0, 17);