From: gs_.jung Date: Tue, 10 Dec 2013 01:56:51 +0000 (+0900) Subject: Fixed null pointer dereference. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F14330%2F2;p=platform%2Fframework%2Fnative%2Fcommon-service.git Fixed null pointer dereference. Change-Id: Ic4157a90053efeaf4790a7601f718918a0666201 --- diff --git a/src/system/FSys_DeviceId.cpp b/src/system/FSys_DeviceId.cpp index 8fecfaa..4aaa43f 100644 --- a/src/system/FSys_DeviceId.cpp +++ b/src/system/FSys_DeviceId.cpp @@ -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; }