X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Flib%2FDtHelp%2FHelpUtil.c;h=5aaec504ba7986e536a1e1adaa877ffbbe4e531d;hb=444aa700c080ed9fe196986696585a529a9fa4b6;hp=8b8166245c275d50a6b409e8533c541993d282ed;hpb=21feacd1598e04594886ab17dd88dba699e0b5e4;p=oweals%2Fcde.git
diff --git a/cde/lib/DtHelp/HelpUtil.c b/cde/lib/DtHelp/HelpUtil.c
index 8b816624..5aaec504 100644
--- a/cde/lib/DtHelp/HelpUtil.c
+++ b/cde/lib/DtHelp/HelpUtil.c
@@ -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
#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
*/