infer_clone/infer/documentation/issues/UNINITIALIZED_VALUE.md

281 B

A value is read before it has been initialized. For example, in 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
  }
}