From f6faf221bc4282a85d35db3340fefd245f7e0e38 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 28 Aug 2020 10:23:58 +0200 Subject: Make sure indexing_backend_selected is initialised --- src/gui_project.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui_project.c') diff --git a/src/gui_project.c b/src/gui_project.c index 7b9c44c8..d7a1cbd1 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -558,9 +558,10 @@ void default_project(struct crystfelproject *proj) proj->n_running_tasks = 0; proj->indexing_new_job_title = NULL; - /* FIXME: Crappy error handling */ + proj->indexing_backend_selected = 0; proj->n_backends = 0; proj->backends = malloc(2*sizeof(struct crystfel_backend)); + /* FIXME: Crappy error handling */ if ( proj->backends == NULL ) { ERROR("Couldn't allocate space for backends\n"); } -- cgit v1.2.3