dtcm: make it build
[oweals/cde.git] / cde / lib / DtHelp / HelpUtil.c
index 8b8166245c275d50a6b409e8533c541993d282ed..5aaec504ba7986e536a1e1adaa877ffbbe4e531d 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -67,6 +67,7 @@
 #include "Access.h"
 #include "bufioI.h"
 #include "DisplayAreaI.h"
+#include "DisplayAreaP.h"
 
 #include <Dt/Help.h>
 #include "HelpI.h"
@@ -76,6 +77,8 @@
 #include "HelpDialogP.h"
 #include "HelpUtilI.h"
 #include "HelposI.h"
+#include "HyperTextI.h"
+#include "FormatI.h"
 #include "MessagesP.h"
 #include "HelpQuickD.h"
 #include "SetListI.h"
@@ -880,6 +883,7 @@ int _DtHelpFilterExecCmd(
    if (False == useQueryDialog)
    {
       *ret_filteredCmdStr = NULL;
+      XtFree(filteredCmdStr);
       return -1;                          /* RETURN error */
    }
 
@@ -1554,7 +1558,7 @@ char *_DtHelpParseIdString(
   char *pAccessFile = NULL;
   char *tmpSpec=NULL;
   char *returnStr=NULL;
-  char *strtok_ptr;
+  char *strtok_ptr=NULL;
 
   tmpSpec = XtNewString(specification);
 
@@ -1612,7 +1616,7 @@ char *_DtHelpParseAccessFile(
   char *pAccessFile = NULL;
   char *tmpSpec=NULL;
   char *returnStr=NULL;
-  char *strtok_ptr;
+  char *strtok_ptr=NULL;
 
   tmpSpec = XtNewString(specification);
 
@@ -2196,7 +2200,7 @@ void _DtHelpDisplayFormatError(
    /* Set the string to the current help dialog */
    (void) _DtHelpFormatAsciiStringDynamic(displayArea, userError, &topicHandle);
          
-   /* We ignor the status return here, because if we error out here we are
+   /* We ignore the status return here, because if we error out here we are
     * in big trouble because this is an error routine
     */