Merge pull request #5752 from akallabeth/manpage_no_err

Allow to generate docbook with 0 length.
This commit is contained in:
Martin Fleisz 2020-01-13 12:26:31 +01:00 committed by GitHub
commit 85984f3bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ LPSTR tr_esc_str(LPCSTR arg, bool format)
/* Prepare a initial buffer with the size of the result string. */
ds = s + 1;
if (s)
if (ds)
{
tmp2 = (LPSTR)realloc(tmp, ds * sizeof(CHAR));
if (!tmp2)