Skip to content

Commit

Permalink
Fix uninitialized value.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 13, 2016
1 parent 1b45d74 commit f1fb785
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions archive_imessage.pl
Expand Up @@ -1096,6 +1096,8 @@ sub talk_gap {
while (my @attachmentrow = $attachmentstmt->fetchrow_array()) {
my ($fname, $mimetype) = @attachmentrow;

$mimetype = '' if (not defined $mimetype);

my $is_image = $mimetype =~ /\Aimage\//;
my $is_video = $mimetype =~ /\Avideo\//;

Expand Down

0 comments on commit f1fb785

Please sign in to comment.