Skip to content

Commit

Permalink
ast: More initialisations
Browse files Browse the repository at this point in the history
  • Loading branch information
David Berry committed Nov 19, 2012
1 parent 86757e5 commit d893817
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions libraries/ast/cmpmap.c
Expand Up @@ -1633,6 +1633,7 @@ static int MapMerge( AstMapping *this, int where, int series, int *nmap,
/* Indicate both sublists are currently empty. */
subout1 = subin2 = 0;
new = submap1 = submap2 = NULL;
subinv1 = subinv2 = 0;

/* Loop round untill all Mappings have been used. */
while( jmap1 <= nmap1 && jmap2 <= nmap2 && astOK ) {
Expand Down
8 changes: 6 additions & 2 deletions libraries/ast/fitschan.c
Expand Up @@ -7050,7 +7050,7 @@ static char *ConcatWAT( AstFitsChan *this, int iaxis, const char *method,
* Description:
* This function searches the supplied FitsChan for any keywords of
* the form "WATi_j", where i and j are integers and i is equal to the
* supplied "iaxis" value plus one, and concatenates their strig
* supplied "iaxis" value plus one, and concatenates their string
* values into a single string. Such keywords are created by IRAF to
* describe their non-standard ZPX and TNX projections.

Expand Down Expand Up @@ -7102,6 +7102,7 @@ static char *ConcatWAT( AstFitsChan *this, int iaxis, const char *method,
out when the FitsChan is deleted. */
watlen = 1;
j = 1;
size = 0;
sprintf( keyname, "WAT%d_%.3d", iaxis + 1, j );
while( astOK ) {

Expand Down Expand Up @@ -15035,6 +15036,9 @@ static void SetFitsCom( AstFitsChan *this, const char *name,
/* Check the global error status. */
if ( !astOK ) return;

/* Initialisation */
size = 0;

/* Ensure the source function has been called */
ReadFromSource( this, status );

Expand Down Expand Up @@ -32015,7 +32019,7 @@ static int WATCoeffs( const char *watstr, int iaxis, double **cvals,

/* Other initialisation to avoid compiler warnings. */
etamin = 0.0;
etamin = 0.0;
etamax = 0.0;
ximax = 0.0;
ximin = 0.0;
order = 0;
Expand Down

0 comments on commit d893817

Please sign in to comment.