From 3d73829c187f7d34c5c3c44047da1137adf36d86 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 16 Dec 2000 17:50:48 +0000 Subject: Update. 2000-12-16 Ulrich Drepper * timezone/asia: Update from tzdata2000h. * timezone/australasia: Likewise. * timezone/backward: Likewise. * timezone/europe: Likewise. * timezone/northamerica: Likewise. * timezone/southamerica: Likewise. * timezone/zone.tab: Likewise. 2000-12-14 Jakub Jelinek * io/ftw.c (ftw_dir): If process_entry returned non-zero result and dir.stream is NULL, only free dir.content. * io/ftwtest.c (cb, main): Add --early-exit option to test it. * io/ftwtest-sh: Test with --early-exit. --- io/ftw.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'io/ftw.c') diff --git a/io/ftw.c b/io/ftw.c index e832fbbc99..01abb63782 100644 --- a/io/ftw.c +++ b/io/ftw.c @@ -426,15 +426,11 @@ ftw_dir (struct ftw_data *data, struct STAT *st) int save_err; char *runp = dir.content; - assert (result == 0); - - while (*runp != '\0') + while (result == 0 && *runp != '\0') { char *endp = strchr (runp, '\0'); result = process_entry (data, &dir, runp, endp - runp); - if (result != 0) - break; runp = endp + 1; } -- cgit v1.2.3