diff scripts/strings/findstr.m @ 3759:110bc441a954

[project @ 2000-12-16 01:25:12 by jwe]
author jwe
date Sat, 16 Dec 2000 01:25:13 +0000
parents 434790acb067
children e2cbe8e31e06
line wrap: on
line diff
--- a/scripts/strings/findstr.m	Fri Dec 15 19:47:29 2000 +0000
+++ b/scripts/strings/findstr.m	Sat Dec 16 01:25:13 2000 +0000
@@ -60,6 +60,11 @@
 
     l_t = length (t);
 
+    if (l_t < 1)
+      v = [];
+      return;
+    endif
+
     ind = 1 : l_t;
     limit = length (s) - l_t + 1;
     v  = zeros (1, limit);