Skip to content

Commit

Permalink
Extract: repair uninitialised variables
Browse files Browse the repository at this point in the history
  • Loading branch information
biochem-fan committed Oct 1, 2019
1 parent 451976b commit 64c94c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/preprocessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,8 @@ void Preprocessing::extractParticlesFromOneFrame(MetaDataTable &MD,
// If the image was re-scaled, then also rescale the rlnOriginX/Y/Z
if (do_rescale)
{
RFLOAT xoff, yoff, zoff=0.;
RFLOAT rescale_factor = (RFLOAT)scale/(RFLOAT)extract_size;
RFLOAT xoff = 0, yoff = 0, zoff = 0;
RFLOAT rescale_factor = (RFLOAT)scale / (RFLOAT)extract_size;

MD.getValue(EMDL_ORIENT_ORIGIN_X, xoff);
MD.getValue(EMDL_ORIENT_ORIGIN_Y, yoff);
Expand Down

0 comments on commit 64c94c3

Please sign in to comment.