diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-12-10 22:28:35 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-12-11 00:17:39 +0100 |
commit | ae26875a61f38ad3be9d87d0ff8953d3f807c09a (patch) | |
tree | 321699fac8c0a7dbd326684c36301d6ccfeb889c /core/profile.h | |
parent | ea0cbba804d5809c60d538d56e5542c9fa305d27 (diff) | |
download | subsurface-ae26875a61f38ad3be9d87d0ff8953d3f807c09a.tar.gz |
Use the copy_string() helper function in set_filename()
copy_string() does the same as the current code, but in one instead
of four lines. Strictly speaking, it does not exactly the same thing
because the empty string ("") case is handled differently. copy_string()
returns NULL instead of a copy of "", which is probably preferred anyway.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/profile.h')
0 files changed, 0 insertions, 0 deletions