*** Original/src/c/dbgsearch	Wed Nov 28 22:38:23 2001
--- RISCOS/c/dbgsearch	Thu Nov 29 23:32:39 2001
***************
*** 40,46 ****
  xmlChar *lastQuery;
  
  #define BUFFER_SIZE 500
! char buff[BUFFER_SIZE];
  
  /**
   * seachInit:
--- 40,47 ----
  xmlChar *lastQuery;
  
  #define BUFFER_SIZE 500
! /* JRF: Two global buff's - making them both static prevents pollution of global namespace */
! static char buff[BUFFER_SIZE];
  
  /**
   * seachInit:
***************
*** 404,410 ****
  {
      int result = 0;
      xmlChar buffer[DEBUG_BUFFER_SIZE];
!     const char *docDirPath = getStringOption(OPTIONS_DOCS_PATH);
      const xmlChar *searchXSL = NULL;
      
  
--- 405,411 ----
  {
      int result = 0;
      xmlChar buffer[DEBUG_BUFFER_SIZE];
!     const xmlChar *docDirPath = getStringOption(OPTIONS_DOCS_PATH);
      const xmlChar *searchXSL = NULL;
  
  
***************
*** 423,429 ****
      if (snprintf
          ((char *) buff, DEBUG_BUFFER_SIZE - 1,
           "xsldbg  %s %s %s", query, searchXSL, tempFile)) {
!         result = !xslDbgShellExecute(buff, 1);
      }
      return result;
  }
--- 424,430 ----
      if (snprintf
          ((char *) buff, DEBUG_BUFFER_SIZE - 1,
           "xsldbg  %s %s %s", query, searchXSL, tempFile)) {
!         result = !xslDbgShellExecute((xmlChar *)buff, 1);
      }
      return result;
  }
***************
*** 557,563 ****
  walkGlobals (xmlHashScanner walkFunc, void *data ATTRIBUTE_UNUSED,
  		   xsltStylesheetPtr style)
  {
-   xsltStackElemPtr global;
    if (!walkFunc || !style)
      return;
  
--- 558,563 ----
***************
*** 606,613 ****
  walkLocals (xmlHashScanner walkFunc, void *data,
  		  xsltStylesheetPtr style)
  {
-   xsltTemplatePtr templ;
- 
    if (!walkFunc || !style)
      return;
  
--- 606,611 ----
