diff src/wma/libffwma/mem.c @ 963:9549fea94794 trunk

[svn] Warning fixes from SuSe.
author chainsaw
date Tue, 17 Apr 2007 14:45:19 -0700
parents aa044d71838f
children
line wrap: on
line diff
--- a/src/wma/libffwma/mem.c	Mon Apr 16 01:35:24 2007 -0700
+++ b/src/wma/libffwma/mem.c	Tue Apr 17 14:45:19 2007 -0700
@@ -46,7 +46,8 @@
     void *ptr;
 
 #ifdef __GLIBC__
-    posix_memalign(&ptr, 16, size);
+    if(posix_memalign(&ptr, 16, size))
+        return NULL;
 #else
     ptr = malloc(size);
 #endif