Fixed null pointer dereference. 30/14330/2
authorgs_.jung <gs_.jung@samsung.com>
Tue, 10 Dec 2013 01:56:51 +0000 (10:56 +0900)
committergs_.jung <gs_.jung@samsung.com>
Fri, 3 Jan 2014 04:52:42 +0000 (13:52 +0900)
Change-Id: Ic4157a90053efeaf4790a7601f718918a0666201

src/system/FSys_DeviceId.cpp

index 8fecfaa..4aaa43f 100644 (file)
@@ -232,7 +232,7 @@ _DeviceId::GetId(Tizen::Base::String& deviceId, int type)
                pTemp = fgets(pTemp, 10, fp);
                if(pTemp == null || strlen(pTemp) < 4)
                {
-                       SysLogException(NID_SYS, E_SYSTEM, "It is failed to read file. [%d]", strlen(pTemp));
+                       SysLogException(NID_SYS, E_SYSTEM, "It is failed to read file.");
                        fclose(fp);
                        return E_SYSTEM;
                }
@@ -241,7 +241,7 @@ _DeviceId::GetId(Tizen::Base::String& deviceId, int type)
                pTemp = fgets(pTemp, 10, fp);
                if(pTemp == null || strlen(pTemp) < 2)
                {
-                       SysLogException(NID_SYS, E_SYSTEM, "It is failed to read file. [%d]", strlen(pTemp));
+                       SysLogException(NID_SYS, E_SYSTEM, "It is failed to read file.");
                        fclose(fp);
                        return E_SYSTEM;
                }
@@ -250,7 +250,7 @@ _DeviceId::GetId(Tizen::Base::String& deviceId, int type)
                pTemp = fgets(pTemp, 10, fp);
                if(pTemp == null || strlen(pTemp) < 6)
                {
-                       SysLogException(NID_SYS, E_SYSTEM, "It is failed to read file. [%d]", strlen(pTemp));
+                       SysLogException(NID_SYS, E_SYSTEM, "It is failed to read file.");
                        fclose(fp);
                        return E_SYSTEM;
                }