]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/lock: add a basic barrier test
authorVMware, Inc <>
Mon, 26 Jul 2010 18:42:00 +0000 (11:42 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 18:42:00 +0000 (11:42 -0700)
Also formally initialize a field instead of depending on the calloc.
The more obvious way will make things easier to understand.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/lock/ulBarrier.c

index d72e2538fa9a7d07cafceba3911edb15d48510fc..ba01a770fc19bfe452f1584265fe4f47c71add7a 100644 (file)
@@ -128,6 +128,7 @@ MXUser_CreateBarrier(const char *userName,  // IN:
    }
 
    barrier->configCount = count;
+   barrier->emptying = FALSE;
 
    barrier->header.name = properName;
    barrier->header.signature = MXUSER_BARRIER_SIGNATURE;