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 /src/gui_project.c | |
parent | 760f17f56b7f79f67a9029cbe7cc55a0acccd3b9 (diff) |
Reduce variable scope where possible
Diffstat (limited to 'src/gui_project.c')
-rw-r--r-- | src/gui_project.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui_project.c b/src/gui_project.c index f72af893..7141fcb8 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -602,9 +602,8 @@ static void handle_var(const char *key, const char *val, void clear_project_files(struct crystfelproject *proj) { - int i; - if ( proj->filenames != NULL ) { + int i; for ( i=0; i<proj->n_frames; i++ ) { free(proj->filenames[i]); free(proj->events[i]); |