Skip to content

Commit e8b2fdc

Browse files
committed
Spacecraft-based observers got their 'planet' clobbered by memset().
1 parent c79af2a commit e8b2fdc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mpc_obs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,10 @@ static int extract_mpc_station_data( const char *buff, mpc_code_t *cinfo)
530530
cinfo->lon -= PI + PI;
531531
}
532532
else
533+
{
533534
memset( cinfo, 0, sizeof( mpc_code_t));
535+
cinfo->planet = rval;
536+
}
534537
}
535538
return( rval);
536539
}

0 commit comments

Comments
 (0)