pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:5967:    *! @endmixed    *!    *! @seealso    *! @[sscanf()], @[Regexp]    */      static int any_does_match( struct svalue *items, int nglobs, struct pike_string *str )   {    INT32 i;    for( i =0; i<nglobs; i++ ) -  if( does_match(str,0,items[i].u.string,0) ) +  { +  struct pike_string *str2 = items[i].u.string; +  if( str == str2 )    return 1; -  +  if( does_match(str,0,str2,0) ) +  return 1; +  }    return 0;   }      PMOD_EXPORT void f_glob(INT32 args)   {    INT32 i;    struct array *a;    struct svalue *glob;    int nglobs;