Loading libs/gui/BufferQueueCore.cpp +5 −3 Original line number Original line Diff line number Diff line Loading @@ -75,11 +75,13 @@ static status_t getProcessName(int pid, String8& name) { if (NULL != fp) { if (NULL != fp) { const size_t size = 64; const size_t size = 64; char proc_name[size]; char proc_name[size]; fgets(proc_name, size, fp); char* result = fgets(proc_name, size, fp); fclose(fp); fclose(fp); if (result != nullptr) { name = proc_name; name = proc_name; return NO_ERROR; return NO_ERROR; } } } return INVALID_OPERATION; return INVALID_OPERATION; } } Loading Loading
libs/gui/BufferQueueCore.cpp +5 −3 Original line number Original line Diff line number Diff line Loading @@ -75,11 +75,13 @@ static status_t getProcessName(int pid, String8& name) { if (NULL != fp) { if (NULL != fp) { const size_t size = 64; const size_t size = 64; char proc_name[size]; char proc_name[size]; fgets(proc_name, size, fp); char* result = fgets(proc_name, size, fp); fclose(fp); fclose(fp); if (result != nullptr) { name = proc_name; name = proc_name; return NO_ERROR; return NO_ERROR; } } } return INVALID_OPERATION; return INVALID_OPERATION; } } Loading