Skip to content

Commit

Permalink
KAPPA: Protect against an abort for one of the parameters in MSTATS.
Browse files Browse the repository at this point in the history
  • Loading branch information
MalcolmCurrie committed Aug 14, 2014
1 parent 0923a21 commit 2575917
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion applications/kappa/libkappa/mstats.f
Expand Up @@ -338,7 +338,9 @@ SUBROUTINE MSTATS( STATUS )
* 2014 August 13 (MJC):
* Call KPS1_MSAGx separately for Data and Variance as this
* routine only processes one array component at a time.
* This preserves the pointer to the variance array.
* This preserves the pointer to the variance array. Check for
* bad status after obtaining parameters to ensure the parameter
* values are defined before attempting to use them.
* {enter_further_changes_here}

*-
Expand Down Expand Up @@ -462,6 +464,7 @@ SUBROUTINE MSTATS( STATUS )
* Get the component we require.
CALL PAR_CHOIC( 'COMP', 'DATA', 'DATA,VARIANCE,QUALITY,ERROR',
: .FALSE., COMP, STATUS )
IF ( STATUS .NE. SAI__OK ) GOTO 999
* Single pixel mode.
* ==================
Expand Down

0 comments on commit 2575917

Please sign in to comment.