diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-07 10:11:04 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-01 14:50:25 -0800 |
commit | 72a6cb64b0aded790e44d97e71434a4eddb91f15 (patch) | |
tree | a5fad576b401ed225915d64ca25c287baa9fff24 /main.c | |
parent | ffe60c0f58ae4b385ad733fad4455efaebdd1342 (diff) |
Cache filename after realpath() processing
Avoid having to make an additional system call for every time
we compare full path names.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -518,7 +518,7 @@ main(int argc, char *argv[]) DBG_PRINT(stderr, "file: %s\n", *fp); filecontent = getfile(*fp); setfile_cmdinc(filecontent, cmdinc_count, cmdinc_list); - ip = newinclude(*fp, (char *) NULL); + ip = newinclude(*fp, NULL, NULL); find_includes(filecontent, ip, ip, 0, FALSE); freefile(filecontent); |