Changeset 7515 for trunk/psModules/src/camera/pmFPAConstruct.c
- Timestamp:
- Jun 11, 2006, 10:53:01 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAConstruct.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAConstruct.c
r7492 r7515 577 577 } 578 578 579 // is FPAname already defined, new name must match it 580 // XXX if not, is it an error? 579 581 const char *currentFPAname = psMetadataLookupStr(&mdok, fpa->concepts, "FPA.NAME"); // Current name 580 582 if (mdok && currentFPAname && strlen(currentFPAname) > 0 && strcmp(currentFPAname, newFPAname) != 0) { … … 694 696 psFree(chipName); 695 697 696 processContents(fpa, chip, cell, phdu, level, content, format); 698 if (processContents(fpa, chip, cell, phdu, level, content, format) < 0) { 699 psError(PS_ERR_IO, false, "Error setting CONTENTS"); 700 psFree(phdu); 701 psFree(view); 702 return NULL; 703 } 697 704 psFree(phdu); 698 705 return view; … … 758 765 hdu->format = psMemIncrRefCounter(format); 759 766 760 processContents(fpa, chip, cell, hdu, level, contentsItem->data.V, format); 767 if (processContents(fpa, chip, cell, hdu, level, contentsItem->data.V, format) < 0) { 768 psError(PS_ERR_IO, false, "Error setting CONTENTS"); 769 psFree(view); 770 psFree(hdu); 771 psFree(contentsIter); 772 return NULL; 773 } 761 774 psFree(hdu); 762 775 }
Note:
See TracChangeset
for help on using the changeset viewer.
