title: uninitialized local variables!
body: <p>Here is my code:</p>
  
  <pre><code>int main(void)
  {
      int i;
      Coords** latLng;
      Quadrado* q1;
      latLng[0] = AdicionaValores(latLng[0],-23.000490,-43.346687);
      latLng[1] = AdicionaValores(latLng[1],-22.988243,-43.342224);
      q1 = AdicionaValoresQuadrado(q1,-23.000490,-43.346687,-22.988243,-43.342224);
  
      printf("# Connecting to database.\n");
      for(i=0;i&lt;2;i++)
      {
      if(clientInside(q1, latLng[i]))
          printf("Dentro");
      else
          printf("Fora");
      }
      system("PAUSE");
  }
  </code></pre>
  
  <p>Here is AdicionaValores and AdicionaValoresQuadrado:</p>
  
  <pre><code>Coords* AdicionaValores(Coords* v, double x, double y)
  {
      v = (Coords*) malloc(sizeof(Coords));
      v-&gt;x = x;
      v-&gt;y = y;
      return v;
  }
  
  Quadrado* AdicionaValoresQuadrado(Quadrado* q, double x1, double y1, double x2, double y2)
  {
      q = (Quadrado*) malloc(sizeof(Quadrado));
      q-&gt;x1 = x1;
      q-&gt;x2 = x2;
      q-&gt;y1 = y1;
      q-&gt;y2 = y2;
      return q;
  }
  </code></pre>
  
  <p>it compiles just fine with 2 warnings, telling me that latLng and q1 are uninitialized! what should I do ?? malloc them on main ? help!</p>