• Martin Wührer's avatar
    c-lib: strdup for service_address and service_binary · e9822fc6
    Martin Wührer authored
    The functions criu_(local_)set_service_address and
    criu_(local_)set_service_binary are the only functions that
    do not create a copy of the given string arguments.
    This may lead to problems, if the original string gets freed
    but criu relies on them.
    
    Additionally, the function criu_local_init_opts() assigns the
    default service_binary now to opt->service_binary instead of
    opt->service_address which is in my opinion the preferred way
    since both are types of an anonymous union.
    Signed-off-by: 's avatarMartin Wührer <martin.wuehrer@artech.at>
    e9822fc6
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...