diff options
Diffstat (limited to 'src/nspawn/nspawn-settings.c')
-rw-r--r-- | src/nspawn/nspawn-settings.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nspawn/nspawn-settings.c b/src/nspawn/nspawn-settings.c index a1518a6e81..997e44c429 100644 --- a/src/nspawn/nspawn-settings.c +++ b/src/nspawn/nspawn-settings.c @@ -75,8 +75,7 @@ int settings_load(FILE *f, const char *path, Settings **ret) { if (s->userns_chown >= 0 && s->userns_mode == _USER_NAMESPACE_MODE_INVALID) s->userns_mode = USER_NAMESPACE_NO; - *ret = s; - s = NULL; + *ret = TAKE_PTR(s); return 0; } |