[PVFS2-CVS] commit by slang in pvfs2/src/io/flow: flow.c
CVS commit program
cvs at parl.clemson.edu
Tue Sep 13 12:42:29 EDT 2005
Update of /projects/cvsroot/pvfs2/src/io/flow
In directory parlweb:/tmp/cvs-serv8800/src/io/flow
Modified Files:
flow.c
Log Message:
mutex can be NULL so assert doesn't work here.
Index: flow.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/flow/flow.c,v
diff -p -u -r1.48 -r1.49
--- flow.c 29 Aug 2005 16:10:54 -0000 1.48
+++ flow.c 13 Sep 2005 15:42:29 -0000 1.49
@@ -335,9 +335,11 @@ void PINT_flow_free(flow_descriptor *flo
void PINT_flow_clear(flow_descriptor *flow_d)
{
assert(flow_d);
- assert(flow_d->flow_mutex);
- gen_mutex_destroy(flow_d->flow_mutex);
+ if(flow_d->flow_mutex)
+ {
+ gen_mutex_destroy(flow_d->flow_mutex);
+ }
memset(flow_d, 0, sizeof(flow_descriptor));
}
More information about the PVFS2-CVS
mailing list