summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/preproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/preproc.c b/src/preproc.c
index bdf4d40..8b59f21 100644
--- a/src/preproc.c
+++ b/src/preproc.c
@@ -247,10 +247,10 @@ grecs_include_path_count(int flag)
{
size_t count = 0;
if (flag & GRECS_STD_INCLUDE)
- count += grecs_std_include_path ? grecs_std_include_path->count : 0;
+ count += grecs_list_size(grecs_std_include_path);
if (flag & GRECS_USR_INCLUDE)
- count += grecs_usr_include_path ? grecs_usr_include_path->count : 0;
- return 0;
+ count += grecs_list_size(grecs_usr_include_path);
+ return count;
}
static int

Return to:

Send suggestions and report system problems to the System administrator.