Skip to content
Snippets Groups Projects
Commit 1944f1b7 authored by Soichiro Kuwahara's avatar Soichiro Kuwahara
Browse files

gstlal_string_triggergen:

- in autocorrelation_matrix size functions, return 0 if the matrix is missing
parent 5860f337
No related branches found
No related tags found
No related merge requests found
......@@ -101,13 +101,13 @@ G_DEFINE_TYPE_WITH_CODE(
static unsigned autocorrelation_channels(const gsl_matrix_float *autocorrelation_matrix)
{
return autocorrelation_matrix->size1;
return autocorrelation_matrix ? autocorrelation_matrix->size1 : 0;
}
static unsigned autocorrelation_length(const gsl_matrix_float *autocorrelation_matrix)
{
return autocorrelation_matrix->size2;
return autocorrelation_matrix ? autocorrelation_matrix->size2 : 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment