aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-09-10 14:57:59 +0200
committerThomas White <taw@physics.org>2018-09-10 14:57:59 +0200
commitec9f2c41c1f21968412eb4b7f57fda69ed6e37b1 (patch)
tree5f1277912264d3632914acd93b5d40a8a3ea7e3c
parent92f2ebfd11d0ccd91ab299f95ffb2d99a457643d (diff)
Initialise audit info string when reading
-rw-r--r--libcrystfel/src/stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 5cd8e560..40133c93 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -1358,6 +1358,7 @@ static void read_audit_lines(Stream *st)
ERROR("Failed to allocate memory for audit information\n");
return;
}
+ st->audit_info[0] = '\0';
/* Read lines from stream until one of them starts with "-----",
* then rewind to the start of that line */