Branch: Tag:

1997-08-18

1997-08-18 13:57:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug with empty string.

Rev: server/base_server/configuration.pike:1.60

1: - string cvs_version = "$Id: configuration.pike,v 1.59 1997/08/18 01:35:53 per Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.60 1997/08/18 13:57:33 grubba Exp $";   #include <module.h>   #include <roxen.h>   /* A configuration.. */
885: Inside #if undefined(NO_INTERNAL_HACK)
   {   #ifndef NO_INTERNAL_HACK    // No, this is not beautiful... :) -  if(id->not_query[0] == '/'&& sscanf(id->not_query, "%*s/internal-%s", loc)) +  if(sizeof(id->not_query) && (id->not_query[0] == '/') && +  sscanf(id->not_query, "%*s/internal-%s", loc))    {    if(sscanf(loc, "gopher-%[^/]", loc)) // The directory icons.    return internal_gopher_image(loc);
2290:    return 0;    }    -  if (err = catch (module_data = obj->register_module())) { +  if (err = catch (module_data = obj->register_module(this_object()))) {   #ifdef MODULE_DEBUG    perror("FAILED\n" + describe_backtrace( err ));   #endif