aboutsummaryrefslogtreecommitdiff
path: root/src/im-asapo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/im-asapo.c')
-rw-r--r--src/im-asapo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/im-asapo.c b/src/im-asapo.c
index 37784bf3..f7851b7b 100644
--- a/src/im-asapo.c
+++ b/src/im-asapo.c
@@ -99,7 +99,9 @@ struct im_asapo *im_asapo_connect(struct im_asapo_params *params)
ERROR("ASAP::O stream not specified.\n");
return NULL;
}
- if ( strcmp(params->stream, params->output_stream) == 0 ) {
+ if ( (params->output_stream != NULL)
+ && (strcmp(params->stream, params->output_stream) == 0) )
+ {
ERROR("ASAP::O input and output streams cannot be the same.\n");
return NULL;
}