IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39332 for trunk


Ignore:
Timestamp:
Feb 7, 2016, 8:59:21 AM (10 years ago)
Author:
eugene
Message:

do not attempt to backup a catalog file if filename and filepointer are null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/dvo_catalog.c

    r39262 r39332  
    10631063  }
    10641064
     1065  // if we do not have a filename, we did not open the file
     1066  if (!catalog->filename && !catalog->f) {
     1067    return TRUE;
     1068  }
     1069
    10651070  char tmpfilename[DVO_MAX_PATH];
    10661071  int status = snprintf (tmpfilename, DVO_MAX_PATH, "%s%s", catalog->filename, suffix);
     
    11771182  }
    11781183
     1184  // if we do not have a filename, we did not open the file
     1185  if (!catalog->filename && !catalog->f) {
     1186    return TRUE;
     1187  }
     1188
    11791189  char tmpfilename[DVO_MAX_PATH];
    11801190  int status = snprintf (tmpfilename, DVO_MAX_PATH, "%s%s", catalog->filename, suffix);
Note: See TracChangeset for help on using the changeset viewer.