From 4dd1197d89d6d108459c4e9e09b4eeb8cb385789 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 Sep 2013 10:01:09 +0000 Subject: [PATCH] Fix uninitialized value warning --- src/script/hydra-evaluator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/hydra-evaluator b/src/script/hydra-evaluator index c84ca940..0fe15ccf 100755 --- a/src/script/hydra-evaluator +++ b/src/script/hydra-evaluator @@ -49,7 +49,7 @@ sub setJobsetError { $jobset->update({ errormsg => $errorMsg, errortime => time, fetcherrormsg => undef }); }); }; - if ($errorMsg ne $prevError) { + if (defined $errorMsg && $errorMsg ne ($prevError // "")) { sendJobsetErrorNotification($jobset, $errorMsg); } }