diff options
author | Thomas White <taw@physics.org> | 2020-06-11 16:26:22 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | 9f809658421e6f0280a68f846341170cf7596938 (patch) | |
tree | 397990b045bf39295f7220d10efc0bf828031b22 /libcrystfel/src/stream.c | |
parent | a0354c7b12c3203509bec884d56a0a90784b95a4 (diff) |
Fix some memory bugs
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 1acddb70..ec49ec9d 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -1236,6 +1236,7 @@ Stream *stream_open_fd_for_write(int fd) void stream_write_target_cell(Stream *st, const UnitCell *cell) { + if ( cell == NULL ) return; fprintf(st->fh, STREAM_CELL_START_MARKER"\n"); write_cell(cell, st->fh); fprintf(st->fh, "; Please note: this is the target unit cell.\n"); |