From 4b977eec7366c57ced2876b99e143b9c73d53a3d Mon Sep 17 00:00:00 2001 From: Andrew Chilton Date: Fri, 4 Jul 2008 00:15:12 +1200 Subject: [PATCH] Just return an empty hash if reading an empty file. --- lib/CIL/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CIL/Utils.pm b/lib/CIL/Utils.pm index e9611cf..47f7ada 100644 --- a/lib/CIL/Utils.pm +++ b/lib/CIL/Utils.pm @@ -41,7 +41,7 @@ sub parse_cil_file { my ($class, $filename, $last_field) = @_; my @lines = read_file($filename); - return unless @lines; + return {} unless @lines; return $class->parse_from_lines( $last_field, @lines ); } -- 2.39.5