title: May be used uninitialized in this function for struct assignment and then segmentation during runtime
body: <p>I am experiencing issue with assigning values to my struct elements. 
  I get a warning message above during the compile
  when i try to assign values to it, i get the warning message above.
    How do i get rid of it.. Is it just a matter of initializing?? And how do I initialize the struct before using it .</p>
  
  <p>I tried to run it with the warning message and i get a segmetation fault error</p>
  
  <p>Newbie in c.. please bear with me </p>
  
  <pre><code>struct outrec {
      char *cny_cd;
      char *region_cd;
      char *region_name;
      char *city_name;
      char *postal_code;
      float latitude;
      float longitude;
      int metro_code;
      int area_code;
      char *out_time_zone;
      char *cityrangeip_start;
      char *cityrangeip_end;
      char *orgname;
      int  orgnetmask;
      char *orgrangeip_start;
      char *orgrangeip_end;
      char *isporgname;
      char *domainname;
      int  domainnetmask;
      char *domainrangeip_start;
      char *domainrangeip_end;
  };
  
  in the main program i called an instance of it 
  </code></pre>
  
  <p>struct outrec result_outrec; </p>
  
  <pre><code>      printf("Storing values in struct \n" ); 
          strcpy(result_outrec.cny_cd, _mk_NA(gir-&gt;country_code));
          strcpy(result_outrec.region_cd, _mk_NA(gir-&gt;region));
          strcpy(result_outrec.region_name,_mk_NA(GeoIP_region_name_by_code(gir-&gt;country_code, gir-&gt;region)));
          strcpy(result_outrec.city_name,_mk_NA(gir-&gt;city));
          strcpy(result_outrec.postal_code,_mk_NA(gir-&gt;postal_code));
          result_outrec.latitude=gir-&gt;latitude;
          result_outrec.longitude=gir-&gt;longitude;
          result_outrec.metro_code=gir-&gt;metro_code;
          result_outrec.area_code=gir-&gt;area_code;
          strcpy(result_outrec.out_time_zone,_mk_NA(time_zone));
          strcpy(result_outrec.cityrangeip_start,(ret[0]));
          strcpy(result_outrec.cityrangeip_end,(ret[1]));
  </code></pre>
  
  <p>Newbie in c. </p>