core:fix compiling warnings

Deal with compiling warnings, variables are not initialized before use
20 jobs for fix/tk906328/core in 36 minutes and 6 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Test
passed #3780806
checkpatch

00:01:56

manual #3780813
allowed to fail manual
t_centos:7.5.1804
manual #3780814
allowed to fail manual
t_centos:7.6.1810
manual #3780815
allowed to fail manual
t_centos:7.7.1908
manual #3780816
allowed to fail manual
t_centos:7.8.2003
manual #3780817
allowed to fail manual
t_centos:8.1.1911
manual #3780823
allowed to fail manual
t_debian:10
manual #3780822
allowed to fail manual
t_debian:9
manual #3780825
allowed to fail manual
t_debian:sid
manual #3780824
allowed to fail manual
t_debian:testing
manual #3780807
allowed to fail manual
t_fedora:28
manual #3780808
allowed to fail manual
t_fedora:29
manual #3780809
allowed to fail manual
t_fedora:30
passed #3780810
t_fedora:31

00:36:06

manual #3780811
allowed to fail manual
t_fedora:32
manual #3780812
allowed to fail manual
t_fedora:rawhide
manual #3780818
allowed to fail manual
t_ubuntu:16.04
manual #3780819
allowed to fail manual
t_ubuntu:18.04
manual #3780821
allowed to fail manual
t_ubuntu:devel
manual #3780820
allowed to fail manual
t_ubuntu:rolling