Changeset 17635 for trunk/psModules/src/objects/pmSourceIO.c
- Timestamp:
- May 12, 2008, 11:52:18 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO.c
r17396 r17635 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.5 6$ $Name: not supported by cvs2svn $6 * @date $Date: 2008-0 4-08 18:35:38 $5 * @version $Revision: 1.57 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-05-12 21:52:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 259 259 // XXX if sources is NULL, skip the cell or write out empty tables? 260 260 psArray *sources = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.SOURCES"); 261 if (sources == NULL) 262 return true; 261 if (!sources) { 262 sources = psArrayAlloc(0); 263 psMetadataAddArray(readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_META_REPLACE, 264 "Blank array of sources", sources); 265 psFree(sources); // Held onto by the metadata, so we can continue to use 266 } 263 267 264 268 switch (file->type) { … … 468 472 psFree (headname); 469 473 psFree (dataname); 470 psFree (xsrcname);471 psFree (xfitname);474 psFree (xsrcname); 475 psFree (xfitname); 472 476 psFree (outhead); 473 477 break;
Note:
See TracChangeset
for help on using the changeset viewer.
