aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-28 10:23:58 +0200
committerThomas White <taw@physics.org>2020-08-28 10:23:58 +0200
commitf6faf221bc4282a85d35db3340fefd245f7e0e38 (patch)
tree1adb79e3f1c837af6b934e05473a38a7dab9d7d9 /src
parenta68e04acd70ca4ec42f23190712249a2ad974fe6 (diff)
Make sure indexing_backend_selected is initialised
Diffstat (limited to 'src')
-rw-r--r--src/gui_project.c3
1 files changed, 2 insertions, 1 deletions
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");
}