]> git.kaiwu.me - njs.git/commit
Fixed passing uninitialized value to printf().
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 1 Sep 2017 15:51:17 +0000 (18:51 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 1 Sep 2017 15:51:17 +0000 (18:51 +0300)
commite72a08f5b1da8a155a6e0f72dcbf0947d5964399
treeedd1f993ef66f185b73a16ab7e93022f7319095b
parent84cf390c27711eec3c42da42e6469e9c3adbc182
Fixed passing uninitialized value to printf().

Previously, njs_ext_console_log() passed an uninitialized value to
printf() function in the case of an error. The precison argument was set
to 0 in such a case, so well-behaved implementation was able to handle
it properly.

Setting this value to NULL, just to make sure and to make Coverity Scan
happy.
njs/njs.c