[Openais-commits] r1513 - branches/whitetank/lib
sdake at developer.osdl.org
sdake at developer.osdl.org
Tue Apr 1 09:04:34 PDT 2008
Author: sdake
Date: 2008-04-01 09:04:34 -0700 (Tue, 01 Apr 2008)
New Revision: 1513
Modified:
branches/whitetank/lib/util.c
Log:
Remove comparison with zero and replace with comparsion with NULL in handle
database code.
Modified: branches/whitetank/lib/util.c
===================================================================
--- branches/whitetank/lib/util.c 2008-04-01 16:03:35 UTC (rev 1512)
+++ branches/whitetank/lib/util.c 2008-04-01 16:04:34 UTC (rev 1513)
@@ -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);
}
More information about the Openais-commits
mailing list