Changeset 11634


Ignore:
Timestamp:
Jan 6, 2011, 2:17:22 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) Fix posix_memalign() unused result warning. inspired by ijuxda's 08b0c5b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r11624 r11634  
    16251625#ifdef HAVE_POSIX_MEMALIGN
    16261626    if( !buf )
    1627         posix_memalign( &buf, pageSize, allocLen );
     1627        if( posix_memalign( &buf, pageSize, allocLen ) )
     1628            buf = NULL; /* just retry with valloc/malloc */
    16281629#endif
    16291630#ifdef HAVE_VALLOC
Note: See TracChangeset for help on using the changeset viewer.