Fix UB caused by uninitialized value.

PiperOrigin-RevId: 595332410
Change-Id: I88ca3e826853b8731e2c9a0c8b327cf13aeca046
pull/171/head
Sandboxed API Team 2024-01-03 01:48:04 -08:00 committed by Copybara-Service
parent 1339d0b7f2
commit fc610b7c7a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ int ChildFunc(void*) {
int main() {
for (int i = 0; i < kProcesses; ++i) {
int p[2];
int p[2] = {0, 0};
char c = ' ';
pipe(p);
g_pids[i] = fork();