Commit ce70ff7c by Wolfgang Bumiller

terminal: return NULL on error in terminal_signal_init

Callers expect a NULL on error, and with PR #3171 marking the pointer as __do_free, we now return a pointer to freed memory here otherwise. Signed-off-by: 's avatarWolfgang Bumiller <w.bumiller@proxmox.com>
parent 636a2ef2
...@@ -174,7 +174,7 @@ on_error: ...@@ -174,7 +174,7 @@ on_error:
ts->sigfd = -1; ts->sigfd = -1;
} }
return ts; return NULL;
} }
void lxc_terminal_signal_fini(struct lxc_terminal *terminal) void lxc_terminal_signal_fini(struct lxc_terminal *terminal)
......
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