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() {
|
int main() {
|
||||||
for (int i = 0; i < kProcesses; ++i) {
|
for (int i = 0; i < kProcesses; ++i) {
|
||||||
int p[2];
|
int p[2] = {0, 0};
|
||||||
char c = ' ';
|
char c = ' ';
|
||||||
pipe(p);
|
pipe(p);
|
||||||
g_pids[i] = fork();
|
g_pids[i] = fork();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user