IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2006, 4:50:26 PM (20 years ago)
Author:
eugene
Message:

better handling for free_catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/wcatalog.c

    r7974 r8001  
    2626
    2727  /* free, initialize data structures */
    28   if (catalog[0].Naverage) {
     28  if (catalog[0].average != NULL) {
    2929    free (catalog[0].average);
    3030    catalog[0].Naverage = 0;
    3131  }
    32   if (catalog[0].Nmeasure) {
     32  if (catalog[0].measure != NULL) {
    3333    free (catalog[0].measure);
    3434    catalog[0].Nmeasure = 0;
    3535  }
    36   if (catalog[0].Nmissing) {
     36  if (catalog[0].missing != NULL) {
    3737    free (catalog[0].missing);
    3838    catalog[0].Nmissing = 0;
    3939  }
    40   if (catalog[0].Nsecfilt) {
     40  if (catalog[0].secfilt != NULL) {
    4141    free (catalog[0].secfilt);
    4242    catalog[0].Nsecfilt = 0;
Note: See TracChangeset for help on using the changeset viewer.