(scm_string_every): Correction to initial "res" value,
authorKevin Ryde <user42@zip.com.au>
Mon, 2 Aug 2004 00:24:36 +0000 (00:24 +0000)
committerKevin Ryde <user42@zip.com.au>
Mon, 2 Aug 2004 00:24:36 +0000 (00:24 +0000)
return should be #t for an empty string.  Reported by Andreas Vögele.

srfi/srfi-13.c

index bbb20fa..13949b0 100644 (file)
@@ -74,7 +74,7 @@ SCM_DEFINE (scm_string_every, "string-every", 2, 2, 0,
   SCM_VALIDATE_SUBSTRING_SPEC_COPY (2, s, cstr,
                                    3, start, cstart,
                                    4, end, cend);
-  res = SCM_BOOL_F;
+  res = SCM_BOOL_T;
   cstr += cstart;
   while (cstart < cend)
     {