Branch: Tag:

2001-10-30

2001-10-30 10:50:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fix for [bug 2433 (#2433)].

Rev: src/builtin_functions.c:1.410

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.409 2001/10/28 18:04:06 nilsson Exp $"); + RCSID("$Id: builtin_functions.c,v 1.410 2001/10/30 10:50:44 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
597:    "length of the string.\n");       if(Pike_sp[1-args].type == T_STRING) { +  /* Handle searching for the empty string. */ +  if (Pike_sp[1-args].u.string->len) {    start = string_search(haystack,    Pike_sp[1-args].u.string,    start); -  +  }    } else if (Pike_sp[1-args].type == T_INT) {    INT_TYPE val = Pike_sp[1-args].u.integer;