Skip to content

Commit 383aec2

Browse files
committed
Remove questionable code
1 parent 72abd2a commit 383aec2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/libstore/local-store-active-builds.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ static ActiveBuildInfo::ProcessInfo getProcessInfo(pid_t pid)
140140
pos++;
141141
pos++; // Skip the null terminator
142142

143-
// Skip any additional null bytes.
144-
while (pos < size && buffer[pos] == '\0')
145-
pos++;
146-
147143
// Parse the arguments.
148144
while (pos < size && info.argv.size() < (size_t) argc) {
149145
size_t argStart = pos;

0 commit comments

Comments
 (0)