8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e4827 commit fa877edCopy full SHA for fa877ed
src/backend/utils/error/elog.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.80 2001/01/24 19:43:15 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.81 2001/02/21 06:05:23 ishii Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -683,6 +683,8 @@ write_syslog(int level, const char *line)
683
#ifdef MULTIBYTE
684
/* trim to multibyte letter boundary */
685
buflen = pg_mbcliplen(buf, l, l);
686
+ if (buflen <= 0)
687
+ return;
688
buf[buflen] = '\0';
689
l = strlen(buf);
690
#endif
0 commit comments