mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
deadcode.DeadStores
This commit is contained in:
parent
de1697b467
commit
9c0beb57f8
@ -72,9 +72,8 @@ size_t getPeakHeap(void) {
|
|||||||
|
|
||||||
char *line = nullptr;
|
char *line = nullptr;
|
||||||
size_t len = 0, maxheap = 0;
|
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) {
|
if (strncmp(line, begin, begin_len) == 0) {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
maxheap = (size_t)strtoull(line + begin_len, nullptr, 10);
|
maxheap = (size_t)strtoull(line + begin_len, nullptr, 10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user