diff options
Diffstat (limited to 'nuttx/mm')
-rw-r--r-- | nuttx/mm/mm_memalign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/mm/mm_memalign.c b/nuttx/mm/mm_memalign.c index 10c455ff7..02394acc5 100644 --- a/nuttx/mm/mm_memalign.c +++ b/nuttx/mm/mm_memalign.c @@ -1,7 +1,7 @@ /************************************************************ * mm/mm_memalign.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -100,7 +100,7 @@ FAR void *memalign(size_t alignment, size_t size) /* Then malloc that size */ rawchunk = (size_t)malloc(allocsize); - if (!rawchunk) + if (rawchunk == NULL) { return NULL; } |