summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-07 10:11:04 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-01 14:50:25 -0800
commit72a6cb64b0aded790e44d97e71434a4eddb91f15 (patch)
treea5fad576b401ed225915d64ca25c287baa9fff24 /main.c
parentffe60c0f58ae4b385ad733fad4455efaebdd1342 (diff)
downloadxorg-util-makedepend-72a6cb64b0aded790e44d97e71434a4eddb91f15.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0fcd0c2..9ebe101 100644
--- a/main.c
+++ b/main.c
@@ -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);