There is a comparison of a pointer in the library util code against the
value 0 when instead it should compare against the value NULL.
Regards
-steve
Index: util.c
===================================================================
--- util.c (revision 1506)
+++ util.c (working copy)
@@ -543,7 +543,7 @@
handleDatabase->handleCount += 1;
newHandles = (struct saHandle *)realloc (handleDatabase->handles,
sizeof (struct saHandle) * handleDatabase->handleCount);
- if (newHandles == 0) {
+ if (newHandles == NULL) {
pthread_mutex_unlock (&handleDatabase->mutex);
return (SA_AIS_ERR_NO_MEMORY);
}
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais