Index: wtf
--- wtf.orig
+++ wtf
@@ -91,7 +91,7 @@ for i; do
 
 	# Try pkg_info(1) next
 	ans="$(pkg_info -qc "$i" 2> /dev/null)"
-	if [ $? -eq 0 ]; then
+	if [ $? -eq 0 ] && [ x"${ans}" != x ] ; then
 		echo "$i: $ans"
 		continue
 	fi
