未验证 提交 910dd882 编写于 作者: P Paul Guo 提交者: GitHub

Eliminate the gp difference of StrNCpy() against pg version. (#7180)

Previously we added the code due to Coverity report,
however, we conclude that we should better align with upstream
after some further discussion. See below.

https://github.com/greenplum-db/gpdb/pull/7120

In the long run, we hope StrNCpy() is gone, by the way.
Reviewed-by: NDaniel Gustafsson <dgustafsson@pivotal.io>
上级 3714116a
......@@ -912,12 +912,6 @@ typedef NameData *Name;
strncpy(_dst, (src), _len); \
_dst[_len-1] = '\0'; \
} \
else \
/* upstream does not have the branch code. Without this, coverity \
* warns potential len as 0 (e.g. potential overflow though with \
* low probability, etc) in some code. \
*/ \
_dst[0] = '\0'; \
} while (0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册