IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41858


Ignore:
Timestamp:
Oct 23, 2021, 3:34:02 PM (5 years ago)
Author:
eugene
Message:

fix uninit-ed vars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroLoadGlints.c

    r41809 r41858  
    274274
    275275                        //now calculate the proper x-coord positions given the angle, for this chip
    276                         double xcFPA0, xcFPA1, angle, chip_angle, glint_length;
     276                        double xcFPA0 = 0.0, xcFPA1 = 0.0;
     277                        double angle = 0.0, chip_angle = 0.0, glint_length = 0.0;
    277278                        angle = atan2(xFPA1 - xFPA0,yFPA1 - yFPA0);
    278279                        xcFPA0 = xFPA0 + (ycFPA0-yFPA0)*tan(angle);
     
    435436
    436437                        //now calculate the proper x-coord positions given the angle, for this chip
    437                         double ycFPA0, ycFPA1, angle, chip_angle, glint_length;
     438                        double ycFPA0 = 0.0, ycFPA1 = 0.0;
     439                        double glint_length = 0.0, angle = 0.0, chip_angle = 0.0;
    438440                        angle = atan2(xFPA1 - xFPA0,yFPA1 - yFPA0);
    439441                        ycFPA0 = yFPA0 + (xcFPA0-xFPA0)/tan(angle);
Note: See TracChangeset for help on using the changeset viewer.