Skip to content

Commit

Permalink
avoid uninitialized variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphaltip committed May 2, 2012
1 parent bc20c7e commit ad19e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bio/DB/SeqFeature/Store/DBI/mysql.pm
Expand Up @@ -1061,8 +1061,8 @@ sub _types_sql {
($primary_tag,$source_tag) = split ':',$type,2;
}

if (length $source_tag) {
if (length($primary_tag)) {
if (defined $source_tag && length $source_tag) {
if (defined $primary_tag && length($primary_tag)) {
push @matches,"tl.tag=?";
push @args,"$primary_tag:$source_tag";
}
Expand Down

0 comments on commit ad19e73

Please sign in to comment.