提交 8c8c0108 编写于 作者: B Bruce Momjian

Add comment to pg_atoi.

上级 0e6b1528
......@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/numutils.c,v 1.70 2005/11/30 23:10:08 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/numutils.c,v 1.71 2005/12/01 21:16:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -73,7 +73,7 @@ pg_atoi(char *s, int size, int c)
errmsg("invalid input syntax for integer: \"%s\"",
s)));
errno = 0;
errno = 0; /* avoid having to check the result for failure */
l = strtol(s, &badp, 10);
/* We made no progress parsing the string, so bail out */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册