From: Ralf Ertzinger Date: Tue, 30 Apr 2013 14:04:06 +0000 (+0200) Subject: libvideosite: Allow calls to _io without arguments (to print an empty line) X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=8a35ad996dcea67721b8ba74afbfbc90a10ecbfe libvideosite: Allow calls to _io without arguments (to print an empty line) --- diff --git a/libvideosite.pm b/libvideosite.pm index bebc8a5..b581e5a 100644 --- a/libvideosite.pm +++ b/libvideosite.pm @@ -130,6 +130,8 @@ sub _io { my @text = @_; my $format; + @text = ('') unless(@text); + # This will define the outputprefix once, so we don't have # do do this every time. $outputprefix = sprintf("%svideosite: %s",