IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2007, 5:15:13 PM (19 years ago)
Author:
magnier
Message:

pedantic initialization of variables

Location:
trunk/psModules/src/camera
Files:
2 edited

Legend:

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

    r10705 r11527  
    183183    }
    184184
    185     bool (*hduReadFunc)(pmHDU*, psFits*); // Function to use to read the HDU
    186     psArray **imageArray;              // Array of images in the HDU
    187     psElemType imageType;              // Expected type for image
     185    bool (*hduReadFunc)(pmHDU*, psFits*) = NULL; // Function to use to read the HDU
     186    psArray **imageArray = NULL; // Array of images in the HDU
     187    psElemType imageType = PS_TYPE_F32; // Expected type for image
    188188    switch (type) {
    189189    case FPA_READ_TYPE_IMAGE:
     
    245245        }
    246246
    247         psImage **target;               // Place in readout to put carved image
     247        psImage **target = NULL;               // Place in readout to put carved image
    248248        switch (type) {
    249249        case FPA_READ_TYPE_IMAGE:
  • trunk/psModules/src/camera/pmFPA_JPEG.c

    r11292 r11527  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-01-26 00:05:17 $
     7 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-02-01 03:15:13 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    147147    }
    148148
    149     float min, max;                 // Minimum and maximum for stretch
    150     float mean, delta;
     149    float min = 0;
     150    float max = 0;                 // Minimum and maximum for stretch
     151    float mean = 0;
     152    float delta = 0;
    151153
    152154    // measure the image statistics for scaling
Note: See TracChangeset for help on using the changeset viewer.