]> granicus.if.org Git - gc/commit
Eliminate CSA warning of staticroot that can be a local variable (tests)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 21 Jul 2017 08:01:01 +0000 (11:01 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 21 Jul 2017 08:01:01 +0000 (11:01 +0300)
commitce64b650ae08368f4ea8346108a21e728c04d131
tree46b99b69225cf10e76d141c799f12b106306b371
parentc03e0c8317db7040c88c62dbed0338aa7209d79e
Eliminate CSA warning of staticroot that can be a local variable (tests)

* tests/staticrootstest.c (staticroot): Remove redundant initialization
to zero; add comment.
* tests/staticrootstest.c (init_staticroot): New function; move
staticroot=libsrl_init() from main(); add comment.
* tests/staticrootstest.c (main): Call init_staticroot().
tests/staticrootstest.c