[svn] / branches / dev-api-3 / xvidcore / src / utils / mem_align.c Repository:
ViewVC logotype

Diff of /branches/dev-api-3/xvidcore/src/utils/mem_align.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 720, Sat Dec 14 09:35:11 2002 UTC revision 721, Sat Dec 14 09:39:42 2002 UTC
# Line 33  Line 33 
33   *   *
34   *  - Thu Jun 13 23:50:07 2002 Added legal header   *  - Thu Jun 13 23:50:07 2002 Added legal header
35   *   *
36   *  $Id: mem_align.c,v 1.8 2002-06-14 13:27:28 Isibaar Exp $   *  $Id: mem_align.c,v 1.8.2.1 2002-12-14 09:39:42 suxen_drol Exp $
37   *   *
38   ****************************************************************************/   ****************************************************************************/
39    
# Line 71  Line 71 
71                  if ((mem_ptr = (uint8_t *) malloc(size + 1)) != NULL) {                  if ((mem_ptr = (uint8_t *) malloc(size + 1)) != NULL) {
72    
73                          /* Store (mem_ptr - "real allocated memory") in *(mem_ptr-1) */                          /* Store (mem_ptr - "real allocated memory") in *(mem_ptr-1) */
74                          *mem_ptr = 0;                          *mem_ptr = 1;
75    
76                          /* Return the mem_ptr pointer */                          /* Return the mem_ptr pointer */
77                          return (void *) mem_ptr++;                          return (void *) mem_ptr++;

Legend:
Removed from v.720  
changed lines
  Added in v.721

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4