aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);