freebsd_network: Initialize some variables.

The cases where these were uninitialized are panics, but
continuable panics, so it makes sense to initialize them anyway.

Spotted by Clang.
This commit is contained in:
Augustin Cavalier
2019-02-21 17:05:44 -05:00
parent 10fbcafdf9
commit f564d526ab
@@ -156,7 +156,7 @@ m_extrefcnt(struct mbuf *m)
static __inline int static __inline int
m_gettype(int size) m_gettype(int size)
{ {
int type; int type = 0;
switch (size) { switch (size) {
case MCLBYTES: case MCLBYTES:
@@ -185,7 +185,7 @@ m_gettype(int size)
static __inline void static __inline void
m_cljset(struct mbuf *m, void *cl, int type) m_cljset(struct mbuf *m, void *cl, int type)
{ {
int size; int size = 0;
switch (type) { switch (type) {
case EXT_CLUSTER: case EXT_CLUSTER: