]> git.ipfire.org Git - thirdparty/lxc.git/commit
c/r: initialize migrate_opts properly 1077/head
authorAdrian Reber <areber@redhat.com>
Mon, 11 Jul 2016 19:55:43 +0000 (21:55 +0200)
committerAdrian Reber <areber@redhat.com>
Mon, 11 Jul 2016 20:03:07 +0000 (22:03 +0200)
commitebb088e115fd81f86602af8a386ee41470c71a73
tree8f80a9ed9f925188f984e36ba5c5c4766389ac71
parentc7d5c3e5083e05fdf00f4cfd4bf842979dce1e99
c/r: initialize migrate_opts properly

The commit "c/r: add support for CRIU's --action-script" breaks
lxc-checkpoint on the command-line. It produces errors like:

 sh: $'\260\366\b\001': command not found

and then it fails. src/lxc/criu.c expects migrate_opts->action_script to
be either NULL, then it is ignored, or to actually contain the name of
an action scripts.

As the struct migrate_opts has not static storage is has to be explicitly
initialized or the value of the structure's members is indeterminate.

Signed-off-by: Adrian Reber <areber@redhat.com>
src/lxc/lxccontainer.c