Skip to content

Commit b7152f1

Browse files
author
Craig Markwardt
committed
eval_f.c - colfilter expressions: prevent lack of column name from sullying the CFITSIO error stack (the code does fallback effort) --CM
1 parent 0f9947b commit b7152f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eval_f.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,10 @@ int ffcalc_rng( fitsfile *infptr, /* I - Input FITS file */
534534
/* Case (1): If column exists put it there */
535535

536536
colNo = 0;
537-
if( ffgcno( outfptr, CASEINSEN, parName, &colNo, status )==COL_NOT_FOUND ) {
537+
ffpmrk(); /* prevent lack of column name from sullying the stack */
538+
ffgcno( outfptr, CASEINSEN, parName, &colNo, status );
539+
ffcmsg();
540+
if( *status ) {
538541

539542
/* Output column doesn't exist. Test for keyword. */
540543

0 commit comments

Comments
 (0)