termcol: fix abort on invalid coltable info hash
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 15 Apr 2017 17:29:15 +0000 (19:29 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 25 May 2017 20:10:22 +0000 (22:10 +0200)
Broken since moved into function in commit v1.8-92-gbcdcb87204 (2017-03-22)
[termcol: named function to parse table data].

termcol.plp

index 3aece81cf64f052ba6fa37283e854d34788e2891..571b2968b9a8d837ddf000d7aae2d34d5bcb9f5e 100644 (file)
@@ -105,7 +105,7 @@ sub coltable {
                coltable($_) for @{$info};
        }
 
-       ref $info eq 'HASH' or next;
+       ref $info eq 'HASH' or return;
 
        my $caption = $info->{name} // $term;
        $caption = sprintf('<%s %s>%s</%1$s>',