mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
deadcode.DeadStores
This commit is contained in:
@@ -72,9 +72,8 @@ size_t getPeakHeap(void) {
|
||||
|
||||
char *line = nullptr;
|
||||
size_t len = 0, maxheap = 0;
|
||||
ssize_t read;
|
||||
|
||||
while ((read = getline(&line, &len, fstr)) != -1) {
|
||||
while ((getline(&line, &len, fstr)) != -1) {
|
||||
if (strncmp(line, begin, begin_len) == 0) {
|
||||
errno = 0;
|
||||
maxheap = (size_t)strtoull(line + begin_len, nullptr, 10);
|
||||
|
Reference in New Issue
Block a user