diff options
Diffstat (limited to 'src/preproc.c')
-rw-r--r-- | src/preproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preproc.c b/src/preproc.c index 8b59f21..183af3a 100644 --- a/src/preproc.c +++ b/src/preproc.c @@ -248,25 +248,25 @@ grecs_include_path_count(int flag) size_t count = 0; if (flag & GRECS_STD_INCLUDE) count += grecs_list_size(grecs_std_include_path); if (flag & GRECS_USR_INCLUDE) count += grecs_list_size(grecs_usr_include_path); return count; } static int foreach_dir(struct grecs_list *list, int flag, int (*fun)(int, const char *, void *), void *data) { - int rc; + int rc = 0; struct grecs_list_entry *ep; for (ep = list->head; rc == 0 && ep; ep = ep->next) rc = fun(flag, ep->data, data); return rc; } int grecs_foreach_include_dir(int flag, int (*fun)(int, const char *, void *), void *data) { int rc = 0; |