]> granicus.if.org Git - gc/commit
Eliminate 'uninitialized variable use' warning in test_printf (cord)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 22 Oct 2012 04:26:27 +0000 (08:26 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 22 Oct 2012 10:28:47 +0000 (14:28 +0400)
commitf2cf0ba5b43653fd675426f5ec06cede4af5a9ae
tree3adab6882fffc59a4943917d8b2005eaa84f3165
parent2079afcb0627c66a28a830b0652e562a7878300b
Eliminate 'uninitialized variable use' warning in test_printf (cord)

* cord/tests/cordtest.c (test_printf): Initialize "l" and "s" local
variables (those values should be set by CORD_sprintf) to prevent
"uninitialized variable use" compiler (or static code analysis tool)
warning as well as for better testing of CORD_sprintf.
cord/tests/cordtest.c