diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-01-07 16:41:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-09 09:29:40 +0800 |
commit | 7d56e404fdd09c1ec24b966eb00ba31c8f87ba70 (patch) | |
tree | 3a1e3d48a423dc50ba9bbc97b60fc0f034f7d907 /uemis.c | |
parent | 065221aac7ec7b762e642a0bf71b58cef7078e85 (diff) | |
download | subsurface-7d56e404fdd09c1ec24b966eb00ba31c8f87ba70.tar.gz |
DownloadFromDCWidget: prevent possible leaks for log/dump files
If the 'logfile_name' and 'dumpfile_name' were NULL we can simply
strdup() them with a new value, but if there was a previous value
we need to free() first.
C99 6.7.8 allows us to keep said variables without the
explicit NULL initialiazation.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis.c')
0 files changed, 0 insertions, 0 deletions