aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-16 13:37:05 +0200
committerThomas White <taw@physics.org>2019-07-16 13:37:05 +0200
commitda65d665e36d27ae1b83e2c4031f515ea7a0c464 (patch)
treec3040c75a00a3d792a46367e758089c9bba239d6 /src
parent4623d265510446c236a40ed61cd527d518836a47 (diff)
Tidy up
Diffstat (limited to 'src')
-rw-r--r--src/dw-hdfsee.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index d74783dc..c9b1cd88 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -2952,9 +2952,12 @@ DisplayWindow *displaywindow_open(char *filename, char *geom_filename,
DisplayWindow *dw;
GtkWidget *vbox;
int check;
+ FILE *fh;
+ unsigned long int seed;
dw = calloc(1, sizeof(DisplayWindow));
if ( dw == NULL ) return NULL;
+
dw->pixbufs = NULL;
dw->peaktype = 0;
dw->binning_dialog = NULL;
@@ -2986,8 +2989,6 @@ DisplayWindow *displaywindow_open(char *filename, char *geom_filename,
dw->ev_list = NULL;
dw->ev = NULL;
dw->rng = *gsl_rng_alloc(gsl_rng_mt19937);
- FILE *fh;
- unsigned long int seed;
fh = fopen("/dev/urandom", "r");
fread(&seed, sizeof(seed), 1, fh);