Skip to content
Snippets Groups Projects
Commit ee2ad1cf authored by Tom Lane's avatar Tom Lane
Browse files

Inline check for full buffer in appendStringInfoChar.

parent e81ad79d
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: stringinfo.c,v 1.22 1999/09/08 16:31:38 tgl Exp $
* $Id: stringinfo.c,v 1.23 1999/11/01 05:10:32 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -146,9 +146,8 @@ appendStringInfo(StringInfo str, const char *fmt,...)
void
appendStringInfoChar(StringInfo str, char ch)
{
Assert(str != NULL);
/* Make more room if needed */
if (str->len + 1 >= str->maxlen)
enlargeStringInfo(str, 1);
/* OK, append the character */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment