Fix uninitialized variable.

This commit is contained in:
player-03
2024-05-16 17:46:20 -04:00
committed by GitHub
parent 3b115885f1
commit 4ce0a8302d

View File

@@ -207,12 +207,12 @@ class CFFI
private static function __findHaxelib(library:String):String
{
#if (sys && !macro && !html5)
var proc:Process;
var proc:Process = null;
try
{
proc = new Process("haxelib", ["libpath", library]);
if (proc == null) return "";
} catch (e:Dynamic) {}
if (proc == null) return "";
var stream = proc.stdout;
var path:String = "";