about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTodd T. Fries <todd@fries.net>2012-08-01 11:47:00 -0500
committerTodd T. Fries <todd@fries.net>2012-08-01 11:47:14 -0500
commitfbf697246e795a87ddec8c525ded0dac75ce952f (patch)
tree1b3623a4e71e26a21e76109a9daedbb37908c662
parent9449cc1d3d23c68368543eb756a3f2606c03be7a (diff)
downloadxombrero-fbf697246e795a87ddec8c525ded0dac75ce952f.tar.gz
sanity check better to fix a warning only perl on linux reports, how odd!
-rw-r--r--txt2tooltip.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/txt2tooltip.pl b/txt2tooltip.pl
index 313b236..d2af2c0 100644
--- a/txt2tooltip.pl
+++ b/txt2tooltip.pl
@@ -65,7 +65,7 @@ sub showtip {
 	my $text;
 	my $count = 1;
 
-	if (length($tip) < 1) {
+	if (!defined($tip) || length($tip) < 1) {
 		return;
 	}