]> git.ipfire.org Git - thirdparty/mtr.git/commit
warnings: avoid vla when malloc() is more appropriate
authorSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2016 09:54:55 +0000 (10:54 +0100)
committerSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2016 09:57:15 +0000 (10:57 +0100)
commitad710b93a2cd0f00daedebbaf0cd5288169217d8
tree1aa9bbdbe630367d97ff52e1af0832e2c4fd76f3
parent58a1c5377b90017553baa3d66ea2a960b0a2b501
warnings: avoid vla when malloc() is more appropriate

Assuming allocatin failure will happen use of vla will cause very strange
looking error.  In this occasion it is better to use malloc, and check it
was successful.  Found with smatch scan.
net.c