dthelp: more coverity fixes
This commit is contained in:
@@ -1610,6 +1610,7 @@ else
|
||||
{
|
||||
strcpy(pCharset, charset);
|
||||
mb_free(&charset);
|
||||
free(charset);
|
||||
}
|
||||
else
|
||||
strcpy(pCharset, isoString);
|
||||
@@ -2809,7 +2810,7 @@ int tryleng = sizeof(pathbuf);
|
||||
int pathleng;
|
||||
int fileleng;
|
||||
SEARCH *thispath;
|
||||
char *mb_inputname;
|
||||
char *mb_inputname = NULL;
|
||||
M_WCHAR *wc_try, *wc_outputname;
|
||||
int tossfile;
|
||||
char filebuf[BIGBUF];
|
||||
@@ -2876,6 +2877,8 @@ else
|
||||
}
|
||||
|
||||
if (try != pathbuf) mb_free(&try);
|
||||
|
||||
mb_free(&mb_inputname);
|
||||
}
|
||||
|
||||
/* Below is a modified version of m_cyclent() that returns a pointer
|
||||
|
||||
@@ -155,6 +155,7 @@ strcpy(helpext, ".xrh");
|
||||
tex = fopen(helpbase, "w");
|
||||
fprintf(tex, "\\gobble\001%s\002%%\n", m_signon);
|
||||
fputs("% Generated Cross-Reference Macros (for a particular document)\n", tex);
|
||||
fclose(tex);
|
||||
if (! xtree.data) return;
|
||||
|
||||
n = 0;
|
||||
|
||||
Reference in New Issue
Block a user