aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-04 16:05:41 +0200
committerThomas White <taw@physics.org>2020-09-04 16:05:41 +0200
commit9009aa0f54c327ff115bb838f0876a3a43495e5e (patch)
treeccf41b32d081e29fd6f4ebbac7229c85229f44aa
parent9fd148bcb8047a8fe43ad776f9555aaac152c887 (diff)
Local BE: duplicate job title
add_result() takes ownership of all of these
-rw-r--r--src/gui_backend_local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c
index e63d8379..1bddc1be 100644
--- a/src/gui_backend_local.c
+++ b/src/gui_backend_local.c
@@ -259,7 +259,7 @@ static void *run_indexing(const char *job_title,
streams = malloc(sizeof(char *));
if ( streams != NULL ) {
streams[0] = strdup("crystfel.stream");
- add_result(proj, job_title, streams, 1);
+ add_result(proj, strdup(job_title), streams, 1);
}
return job;
}