diff options
-rw-r--r-- | src/preproc.c | 6 |
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 @@ -249,6 +249,6 @@ grecs_include_path_count(int flag) 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; } |