Commit 2c7d90ac by Dwight Engen Committed by Stéphane Graber

quiet gcc 4.4.7 warning about saveptr use before initialization

The recent change to use strtok_r causes a build warning with this older gcc version, so initialize saveptr to NULL to quiet the compiler and unbreak the build. There was no warning with gcc 4.7.2 that I originally tested with. Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 98663823
...@@ -759,7 +759,7 @@ static int setup_tty(const struct lxc_rootfs *rootfs, ...@@ -759,7 +759,7 @@ static int setup_tty(const struct lxc_rootfs *rootfs,
static int setup_rootfs_pivot_root_cb(char *buffer, void *data) static int setup_rootfs_pivot_root_cb(char *buffer, void *data)
{ {
struct lxc_list *mountlist, *listentry, *iterator; struct lxc_list *mountlist, *listentry, *iterator;
char *pivotdir, *mountpoint, *mountentry, *saveptr; char *pivotdir, *mountpoint, *mountentry, *saveptr = NULL;
int found; int found;
void **cbparm; void **cbparm;
......
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