1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

Add patch to fix use of uninitialized value $mysqlversion in pattern match

This commit is contained in:
Steven Kreuzer 2014-06-17 14:26:07 +00:00
parent 70e405b09d
commit 92949acdeb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358121
2 changed files with 12 additions and 0 deletions
databases/innotop

View File

@ -3,6 +3,7 @@
PORTNAME= innotop
PORTVERSION= 1.9.1
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= GOOGLE_CODE

View File

@ -0,0 +1,11 @@
--- innotop.orig 2014-06-17 08:31:31.000000000 -0400
+++ innotop 2014-06-17 08:32:19.000000000 -0400
@@ -470,7 +470,7 @@
# too many locks to print, the output might be truncated)
my $time_text;
- if ( $mysqlversion =~ /^5\.6/ ) {
+ if ( defined $mysqlversion && $mysqlversion =~ /^5\.6/ ) {
( $time_text ) = $fulltext =~ m/^([0-9-]* [0-9:]*) [0-9a-f]* INNODB MONITOR OUTPUT/m;
$innodb_data{'ts'} = [ parse_innodb_timestamp_56( $time_text ) ];
} else {