summaryrefslogtreecommitdiffabout
path: root/src/preproc.c
Side-by-side diff
Diffstat (limited to 'src/preproc.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/preproc.c2
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
@@ -254,13 +254,13 @@ grecs_include_path_count(int flag)
}
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;
}

Return to:

Send suggestions and report system problems to the System administrator.