[omd-commits] OMD Git: omd: tests: fix warning about undef value in tempfile()

git version control git at mathias-kettner.de
Mon Sep 8 10:52:39 CEST 2014


Module:   omd
Branch:   master
Commit:   d3a8ace6a26f58198682aef5bee41b813edfe0eb
URL:      http://omdistro.org/projects/omd/repository/revisions/d3a8ace6a26f58198682aef5bee41b813edfe0eb

Author:   Sven Nierlein <sven at consol.de>
Date:     Sun Sep  7 00:50:10 2014 +0200
Commiter: Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Mon Sep  8 10:45:43 2014 +0200

tests: fix warning about undef value in tempfile()

---

 t/TestUtils.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/TestUtils.pm b/t/TestUtils.pm
index 43fa3af..8e29ed9 100644
--- a/t/TestUtils.pm
+++ b/t/TestUtils.pm
@@ -640,7 +640,7 @@ sub _request {
     our $cookie_jar;
 
     if(!defined $cookie_jar) {
-        my($fh, $cookie_file) = tempfile(undef, UNLINK => 1);
+        my($fh, $cookie_file) = tempfile('', UNLINK => 1);
         unlink ($cookie_file);
         $cookie_jar = HTTP::Cookies::Netscape->new(
                                        file     => $cookie_file,



More information about the omd-commits mailing list