IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2006, 12:43:26 PM (20 years ago)
Author:
Paul Price
Message:

Adding NULL checks at function start, to provide some robustness, following SEGVs when CELL.TRIMSEC specified incorrectly in the camera format configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAHeader.c

    r7017 r7274  
    5656                     )
    5757{
     58    PS_ASSERT_PTR_NON_NULL(cell, false);
     59    PS_ASSERT_PTR_NON_NULL(fits, false);
     60
    5861    if (!cell->hdu) {
    5962        return pmChipReadHeader(cell->parent, fits);
     
    7275                     )
    7376{
     77    PS_ASSERT_PTR_NON_NULL(chip, false);
     78    PS_ASSERT_PTR_NON_NULL(fits, false);
     79
    7480    if (!chip->hdu) {
    7581        return pmFPAReadHeader(chip->parent, fits);
     
    8894                    )
    8995{
     96    PS_ASSERT_PTR_NON_NULL(fpa, false);
     97    PS_ASSERT_PTR_NON_NULL(fits, false);
     98
    9099    if (!fpa->hdu) {
    91100        return false;
Note: See TracChangeset for help on using the changeset viewer.