From: Mike Taylor Date: Thu, 20 Sep 2007 10:12:19 +0000 (+0000) Subject: Belt-and-braces check X-Git-Tag: CPAN-v1.02~54^2~287 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=1009cb5e43e8d615cf5ee1931aa1d5fda3bb6f47;p=irspy-moved-to-github.git Belt-and-braces check --- diff --git a/lib/ZOOM/IRSpy/Utils.pm b/lib/ZOOM/IRSpy/Utils.pm index a59442b..de1e690 100644 --- a/lib/ZOOM/IRSpy/Utils.pm +++ b/lib/ZOOM/IRSpy/Utils.pm @@ -1,4 +1,4 @@ -# $Id: Utils.pm,v 1.35 2007-06-28 13:59:31 sondberg Exp $ +# $Id: Utils.pm,v 1.36 2007-09-20 10:12:19 mike Exp $ package ZOOM::IRSpy::Utils; @@ -205,6 +205,9 @@ sub irspy_identifier2target { sub _irspy_identifier2target { my($id) = @_; + confess "_irspy_identifier2target(): id is undefined" + if !defined $id; + my($protocol, $target) = ($id =~ /(.*?):(.*)/); if (uc($protocol) eq "Z39.50") { return "tcp:$target";