diff options
author | Thomas White <taw@physics.org> | 2021-07-21 13:26:37 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-21 15:34:33 +0200 |
commit | 7e5536832b22036a634a74e16073b4762a416e29 (patch) | |
tree | 25799eb139d235f524a80c53fb25d0c9f64eb6f1 /libcrystfel/src/image.c | |
parent | 760f17f56b7f79f67a9029cbe7cc55a0acccd3b9 (diff) |
Reduce variable scope where possible
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r-- | libcrystfel/src/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 3c5af479..9fc647ab 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -1140,7 +1140,6 @@ static int create_satmap(struct image *image, * but it isn't this one. Therefore make a fake * saturation map */ - long int j; int p_w, p_h; p_w = p->orig_max_fs - p->orig_min_fs + 1; @@ -1149,6 +1148,7 @@ static int create_satmap(struct image *image, image->sat[i] = malloc(p_w*p_h*sizeof(float)); if ( image->sat[i] != NULL ) { + long int j; for ( j=0; j<p_w*p_h; j++ ) { image->sat[i][j] = INFINITY; } |