]> granicus.if.org Git - curl/commit
tool_parse_cfg: Avoid 2 fopen() for WIN32
authorGisle Vanem <gisle.vanem@gmail.com>
Thu, 23 May 2019 15:13:39 +0000 (17:13 +0200)
committerGitHub <noreply@github.com>
Thu, 23 May 2019 15:13:39 +0000 (17:13 +0200)
commit8144ba38c383718355d8af2ed8330414edcbbc83
tree9d611dac83c46ec6cbc61f59541321f945f9c6e8
parent9ad313dcb89b540955500538d47ca49b55d60b3c
tool_parse_cfg: Avoid 2 fopen() for WIN32

Using the memdebug.h mem-leak feature, I noticed 2 calls like:
  FILE tool_parsecfg.c:70 fopen("c:\Users\Gisle\AppData\Roaming\_curlrc","rt")
  FILE tool_parsecfg.c:114 fopen("c:\Users\Gisle\AppData\Roaming\_curlrc","rt")

No need for 'fopen(), 'fclose()' and a 'fopen()' yet again.
src/tool_parsecfg.c