Skip to content

Commit

Permalink
Fix release compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tht13 committed May 27, 2017
1 parent 99ceb07 commit 4468728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Electrino/win10/Electrino/JS/JSModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void AttachProperty(AbstractJSModule module, JavaScriptValue metho
public static string JSValToString(JavaScriptValue val)
{
val = val.ConvertToString();
IntPtr returnValue;
IntPtr returnValue = IntPtr.Zero;
UIntPtr stringLength;
Debug.Assert(Native.JsStringToPointer(val, out returnValue, out stringLength) == JavaScriptErrorCode.NoError, "Failed to convert return value.");
return Marshal.PtrToStringUni(returnValue);
Expand Down

0 comments on commit 4468728

Please sign in to comment.