Set null to name parameter when name is a zero sized string 72/147272/3
authorDongsun Lee <ds73.lee@samsung.com>
Fri, 1 Sep 2017 06:58:53 +0000 (15:58 +0900)
committerDong Sun Lee <ds73.lee@samsung.com>
Wed, 27 Sep 2017 09:01:01 +0000 (09:01 +0000)
Change-Id: Ic61cc819700ee3cbc25b0d16edec7bdd75765fdd
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs

index f05cb74..b61527e 100644 (file)
@@ -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));
         }