dthelp: coverity fixes

This commit is contained in:
Peter Howkins
2018-04-13 20:26:23 +01:00
parent fee6003be1
commit 9b4b82c1f0
13 changed files with 53 additions and 58 deletions

View File

@@ -231,7 +231,10 @@ SEARCH *searchp;
char *mb_entcontent;
mb_entcontent = MakeMByteString(entcontent);
if (!mb_entcontent || !*mb_entcontent) return NULL; /* null file name, don't open a directory */
if (!mb_entcontent || !*mb_entcontent) {
m_free(mb_entcontent, "multi-byte string");
return NULL; /* null file name, don't open a directory */
}
open = fopen(mb_entcontent, "r");
if (open)