]> git.ipfire.org Git - thirdparty/lxc.git/commit
conf: less error prone pointer access 1276/head
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 23 Dec 2016 12:10:01 +0000 (13:10 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Apr 2017 12:01:11 +0000 (14:01 +0200)
commita6390f01cc5a5c016c151e5f0d486d276dfd4555
treec8df977aa2227a927f66cbe2d9bbc58fc3e2151f
parentfe17b651c529c8ed3c1b67e8fb4eabe5b099ca98
conf: less error prone pointer access

These functions define pointer to their key shifted by a
number and guard access to it later via another variable.
Let's make this more explicit (and additionally have the
pointer be NULL in the case where it is not supposed to be
used).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/conf.c