]> git.imager.perl.org - imager.git/blobdiff - conv.im
yes 0.90 has been released
[imager.git] / conv.im
diff --git a/conv.im b/conv.im
index b766d7eb7cc2495aae4bdb9dd9936737240c19e6..f02db85633db7824087c8b21d179218143c591d5 100644 (file)
--- a/conv.im
+++ b/conv.im
@@ -22,6 +22,11 @@ i_conv(i_img *im, const double *coeff,int len) {
 
   mm_log((1,"i_conv(im %p, coeff %p, len %d)\n",im,coeff,len));
   i_clear_error();
+
+  if (len < 1) {
+    i_push_error(0, "there must be at least one coefficient");
+    return 0;
+  }
  
   center=(len-1)/2;