tree-wide: initialize all auto-cleanup variables

Closes: #3101. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 5c338ef4
...@@ -1260,7 +1260,7 @@ static int mkdir_eexist_on_last(const char *dir, mode_t mode) ...@@ -1260,7 +1260,7 @@ static int mkdir_eexist_on_last(const char *dir, mode_t mode)
orig_len = strlen(dir); orig_len = strlen(dir);
do { do {
__do_free char *makeme; __do_free char *makeme = NULL;
int ret; int ret;
size_t cur_len; size_t cur_len;
......
...@@ -909,9 +909,9 @@ static int set_config_net_ipv6_gateway(const char *key, const char *value, ...@@ -909,9 +909,9 @@ static int set_config_net_ipv6_gateway(const char *key, const char *value,
static int set_config_net_veth_ipv6_route(const char *key, const char *value, static int set_config_net_veth_ipv6_route(const char *key, const char *value,
struct lxc_conf *lxc_conf, void *data) struct lxc_conf *lxc_conf, void *data)
{ {
__do_free char *valdup; __do_free char *valdup = NULL;
__do_free struct lxc_inet6dev *inet6dev; __do_free struct lxc_inet6dev *inet6dev = NULL;
__do_free struct lxc_list *list; __do_free struct lxc_list *list = NULL;
int ret; int ret;
char *netmask, *slash; char *netmask, *slash;
struct lxc_netdev *netdev = data; struct lxc_netdev *netdev = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment