From cb3123a95817d1d475134f62e8fdeecd88cb103d Mon Sep 17 00:00:00 2001 From: Dongsun Lee Date: Fri, 1 Sep 2017 15:58:53 +0900 Subject: [PATCH] Set null to name parameter when name is a zero sized string Change-Id: Ic61cc819700ee3cbc25b0d16edec7bdd75765fdd Signed-off-by: Dongsun Lee --- src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs b/src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs index f05cb74..b61527e 100644 --- a/src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs +++ b/src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs @@ -414,6 +414,8 @@ namespace Tizen.Security.TEEC public Context(string name) { context = new Interop.TEEC_Context(); + if (name != null && name.Length == 0) + name = null; int ret = Interop.Libteec.InitializeContext(name, ref context); Interop.CheckNThrowException(ret, string.Format("InititalizeContext('{0}')", name)); } -- 2.7.4