diff options
Diffstat (limited to 'src/ufo-filter-stripes1d-task.c')
-rw-r--r-- | src/ufo-filter-stripes1d-task.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ufo-filter-stripes1d-task.c b/src/ufo-filter-stripes1d-task.c index 88c3d03..574aac2 100644 --- a/src/ufo-filter-stripes1d-task.c +++ b/src/ufo-filter-stripes1d-task.c @@ -72,9 +72,11 @@ create_coefficients (UfoFilterStripes1dTaskPrivate *priv, const guint width) const guint real_width = width / 2 + 1; cl_int cl_err; - if (!coefficients) { + if (coefficients == NULL) { g_warning ("Could not allocate memory for coeefficients"); + return; } + if (width % 2) { g_warning ("Width must be an even number"); } |