Changeset 1216c9c in rtems


Ignore:
Timestamp:
Apr 17, 2002, 2:01:34 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d25d17b
Parents:
cf80584
Message:

2002-04-17 Ralf Corsepius <corsepiu@…>

  • libc/scandir.c: Initialize nitems = 0.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/scandir.c

    rcf80584 r1216c9c  
    8787        register struct dirent *p = NULL;
    8888        register struct dirent **names = NULL;
    89         register size_t nitems;
     89        register size_t nitems = 0;
    9090        struct stat stb;
    9191        long arraysz;
     
    107107                goto  cleanup_and_bail;
    108108
    109         nitems = 0;
    110109        while ((d = readdir(dirp)) != NULL) {
    111110                if (select != NULL && !(*select)(d))
  • c/src/lib/ChangeLog

    rcf80584 r1216c9c  
     12002-04-17      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * libc/scandir.c: Initialize nitems = 0.
     4
    152002-04-16      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • c/src/lib/libc/scandir.c

    rcf80584 r1216c9c  
    8787        register struct dirent *p = NULL;
    8888        register struct dirent **names = NULL;
    89         register size_t nitems;
     89        register size_t nitems = 0;
    9090        struct stat stb;
    9191        long arraysz;
     
    107107                goto  cleanup_and_bail;
    108108
    109         nitems = 0;
    110109        while ((d = readdir(dirp)) != NULL) {
    111110                if (select != NULL && !(*select)(d))
  • cpukit/libcsupport/src/scandir.c

    rcf80584 r1216c9c  
    8787        register struct dirent *p = NULL;
    8888        register struct dirent **names = NULL;
    89         register size_t nitems;
     89        register size_t nitems = 0;
    9090        struct stat stb;
    9191        long arraysz;
     
    107107                goto  cleanup_and_bail;
    108108
    109         nitems = 0;
    110109        while ((d = readdir(dirp)) != NULL) {
    111110                if (select != NULL && !(*select)(d))
Note: See TracChangeset for help on using the changeset viewer.