[lxc-devel] [lxc/lxc] 3d54b7: conf: less error prone pointer access
GitHub
noreply at github.com
Mon Apr 17 01:48:41 UTC 2017
Branch: refs/heads/stable-1.0
Home: https://github.com/lxc/lxc
Commit: 3d54b7001e918f5b64cfc684fd441b929de32100
https://github.com/lxc/lxc/commit/3d54b7001e918f5b64cfc684fd441b929de32100
Author: Wolfgang Bumiller <w.bumiller at proxmox.com>
Date: 2017-04-16 (Sun, 16 Apr 2017)
Changed paths:
M src/lxc/conf.c
Log Message:
-----------
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 at proxmox.com>
More information about the lxc-devel
mailing list