mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #5752 from akallabeth/manpage_no_err
Allow to generate docbook with 0 length.
This commit is contained in:
commit
85984f3bd3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue