diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-07-08 00:26:24 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-07 17:42:10 -0700 |
commit | 94d6e5d851dd72466ab6c7447391b0237040818b (patch) | |
tree | 6bf917009e56e3de45216dab3cb902b5dbe30962 /core/device.h | |
parent | 2de5b95acf65cf67db43783b9d308bd097fd7141 (diff) | |
download | subsurface-94d6e5d851dd72466ab6c7447391b0237040818b.tar.gz |
save-git: allocate user_info members on the heap
subsurface_user_info() only works on Linux (linux.c),
but it doesn't allocate values on the heap.
Solve this ownership problem by always allocating
.name and .email on the heap in subsurface_user_info()
and freeing in the caller.
If subsurface_user_info() did not modify any of the
values from NULL, use default ones, but allocate them
on the heap too.
Ref #1346
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'core/device.h')
0 files changed, 0 insertions, 0 deletions