]> git.mjollnir.org Git - cil.git/commitdiff
Just return an empty hash if reading an empty file.
authorAndrew Chilton <andychilton@gmail.com>
Thu, 3 Jul 2008 12:15:12 +0000 (00:15 +1200)
committerAndrew Chilton <andychilton@gmail.com>
Thu, 3 Jul 2008 12:15:12 +0000 (00:15 +1200)
lib/CIL/Utils.pm

index e9611cf648a375c5a3b5f517ef839bd522510d97..47f7ada21d0c5d8b8b0e44a15a619448accbd2e3 100644 (file)
@@ -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 );
 }