Changeset 59efbdd4 in rtems


Ignore:
Timestamp:
Mar 22, 2015, 7:59:52 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
278da87
Parents:
0a9345ed
git-author:
Joel Sherrill <joel.sherrill@…> (03/22/15 19:59:52)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:29)
Message:

malloctest/init.c: Fix use uninitialized warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/malloctest/init.c

    r0a9345ed r59efbdd4  
    12001200  for ( i=sizeof(void *) ; i<maximumShift ; i++ ) {
    12011201    size_t alignment = 1 << i;
     1202
     1203    p1 = NULL; /* Initialize p1 to aovid used uninitialized */
     1204
    12021205    printf( "posix_memalign - alignment of %zd -- OK\n", alignment);
    12031206    sc = posix_memalign( &p1, alignment, 8 );
Note: See TracChangeset for help on using the changeset viewer.