mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Fix UB caused by uninitialized value.
PiperOrigin-RevId: 595332410 Change-Id: I88ca3e826853b8731e2c9a0c8b327cf13aeca046
This commit is contained in:
parent
1339d0b7f2
commit
fc610b7c7a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user