confile: cleanup clone_update_unexp_hooks()

parent b063ba29
...@@ -3266,13 +3266,12 @@ bool clone_update_unexp_hooks(struct lxc_conf *conf, const char *oldpath, ...@@ -3266,13 +3266,12 @@ bool clone_update_unexp_hooks(struct lxc_conf *conf, const char *oldpath,
const char *newpath, const char *oldname, const char *newpath, const char *oldname,
const char *newname) const char *newname)
{ {
__do_free char *newdir = NULL, __do_free char *newdir = NULL, *olddir = NULL;
*olddir = NULL; char *lstart = conf->unexpanded_config;
const char *key = "lxc.hook";
int ret; int ret;
char *lend, *p; char *lend, *p;
char *lstart = conf->unexpanded_config;
size_t newdirlen, olddirlen; size_t newdirlen, olddirlen;
const char *key = "lxc.hook";
olddirlen = strlen(oldpath) + strlen(oldname) + 1; olddirlen = strlen(oldpath) + strlen(oldname) + 1;
olddir = must_realloc(NULL, olddirlen + 1); olddir = must_realloc(NULL, olddirlen + 1);
......
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