]> git.proxmox.com Git - mirror_lxc.git/commit
storage: avoid segfault
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Sep 2017 01:30:00 +0000 (03:30 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Sep 2017 06:45:54 +0000 (08:45 +0200)
commit45b4bb961820074ddee2cdebd3a5feec997e2906
treecccbebb954b516165140c64e4cd97d7a3b7c5441
parent76bdf2992c0c90f55b233dd5985d49d02c0c55a7
storage: avoid segfault

When the "lxc.rootfs.path" property is not set and users request a container
copy we would segfault since strstr() would be called on a NULL pointer.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/storage/storage.c