Changeset 24988
- Timestamp:
- Aug 3, 2009, 5:06:08 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/ReadImageHeader.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/ReadImageHeader.c
r24973 r24988 8 8 double tmp, sec, Cerror, ZeroPt, FWHM_X, FWHM_Y; 9 9 char *c, photname[64], line[80]; 10 PhotCode *photcodeData ;10 PhotCode *photcodeData = NULL; 11 11 12 12 // zero out the entire image structure … … 206 206 if (!strcasecmp(ZERO_POINT_OPTION, "CHIP_HEADER")) { 207 207 float ZPT_OBS; 208 if (! gfits_scan (header, "ZPT_OBS", "%f", 1, &ZPT_OBS)) {208 if (!photcodeData || !gfits_scan (header, "ZPT_OBS", "%f", 1, &ZPT_OBS)) { 209 209 fprintf (stderr, "zero point not supplied in header\n"); 210 210 ZERO_POINT_OFFSET = 0.0;
Note:
See TracChangeset
for help on using the changeset viewer.
