| 76 | |
| 77 | public: |
| 78 | ProcFileReader(const char *path) { |
| 79 | m_szPath = NULL; |
| 80 | fd = 0; |
| 81 | line = NULL; |
| 82 | |
| 83 | if (path) { |
| 84 | int len = strlen(path); |
| 85 | if (len) { |
| 86 | m_szPath = new char[len + 1]; |
| 87 | strcpy(m_szPath, path); |
| 88 | line = new char[MAX_LEN]; |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | ~ProcFileReader() { |
| 94 | if (m_szPath) { |
nothing calls this directly
no outgoing calls
no test coverage detected