aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 3c10c543..c6d88629 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -571,6 +571,8 @@ void write_command(Stream *st, int argc, char *argv[])
{
int i;
+ if ( argc == 0 ) return;
+
for ( i=0; i<argc; i++ ) {
if ( i > 0 ) fprintf(st->fh, " ");
fprintf(st->fh, "%s", argv[i]);