Browse Source

* Initialize result

Michael Van Canneyt 1 week ago
parent
commit
7ea39bec74
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/wasm-utils/src/wasm.pas2js.websocketapi.pas

+ 1 - 0
packages/wasm-utils/src/wasm.pas2js.websocketapi.pas

@@ -203,6 +203,7 @@ var
   Callback : TWasmWebsocketAllocateBuffer absolute aValue;
   Callback : TWasmWebsocketAllocateBuffer absolute aValue;
 
 
 begin
 begin
+  Result:=0;
   aValue:=InstanceExports['__wasm_websocket_allocate_buffer'];
   aValue:=InstanceExports['__wasm_websocket_allocate_buffer'];
   if Assigned(CallBack) then
   if Assigned(CallBack) then
     With aSocket do
     With aSocket do