]> iEval git - gruntmaster-daemon.git/commitdiff
Fix gruntmasterd crashes
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 29 Jan 2014 23:11:10 +0000 (01:11 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 29 Jan 2014 23:11:10 +0000 (01:11 +0200)
lib/Gruntmaster/Daemon/Judge/Absolute.pm

index 010cf0b2d70e94e7c01ce2b949ba4c1b1ab57405..2adea012f76875550b649d3a9e909c74061612bc 100644 (file)
@@ -11,8 +11,8 @@ our $VERSION = '0.001';
 ##################################################
 
 sub judge{
-  $_ = pop;
-  ref $_ ? (result => $_->[0], result_text => $_->[1]) : (result => AC, result_text => 'Accepted')
+       my $result = pop;
+       ref $result ? (result => $result->[0], result_text => $result->[1]) : (result => AC, result_text => 'Accepted')
 }
 
 1;
This page took 0.01863 seconds and 4 git commands to generate.