From 7e5536832b22036a634a74e16073b4762a416e29 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 21 Jul 2021 13:26:37 +0200 Subject: Reduce variable scope where possible --- src/indexamajig.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/indexamajig.c') diff --git a/src/indexamajig.c b/src/indexamajig.c index d9b0114d..9bbf7e5d 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -166,12 +166,11 @@ static void write_json_radii(FILE *fh, const char *name, static void write_methods(FILE *fh, const char *name, IndexingPrivate *ipriv) { - int i, n; - const IndexingMethod *methods; - fprintf(fh, " \"%s\": [", name); if ( ipriv != NULL ) { + const IndexingMethod *methods; + int i, n; methods = indexing_methods(ipriv, &n); for ( i=0; iipriv); write_json_cell(fh, "target_cell", args->cell); -- cgit v1.2.3