Summary: title Reviewed By: ezgicicek Differential Revision: D22045454 fbshipit-source-id: eb3e907d3master
parent
b90f0a0182
commit
aa3586b855
@ -0,0 +1,19 @@
|
||||
A value is read before it has been initialized. For example, in C:
|
||||
|
||||
```C
|
||||
struct coordinates {
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
|
||||
void foo() {
|
||||
struct coordinates c;
|
||||
c.x = 42;
|
||||
c.y++; // uninitialized value c.y!
|
||||
|
||||
int z;
|
||||
if (z == 0) { // uninitialized value z!
|
||||
// something
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Reference in new issue