10_ZWave.pm: reset $@ for Windows/new Perl ? (Forum #49444)

git-svn-id: https://svn.fhem.de/fhem/trunk@10866 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-02-17 07:00:32 +00:00
parent d6a0909c24
commit 61a7e83bb1

View File

@@ -805,6 +805,7 @@ ZWave_Cmd($$@)
} else {
$cmdFmt = sprintf($cmdFmt, @a) if($nArg);
$@ = undef;
my ($err, $ncmd) = eval($cmdFmt) if($cmdFmt !~ m/^\d/);
return $err if($err);
return $@ if($@);