Small cleanup

Original commit message from CVS:
Small cleanup
This commit is contained in:
Wim Taymans 2002-11-02 13:15:10 +00:00
parent cc59aa1770
commit a92661f761

View file

@ -81,16 +81,17 @@ static GPrivate *_cothread_ctx_key;
cothread_context *
cothread_context_init (void)
{
/*
* initalize the whole of the cothreads context
*/
cothread_context *ctx;
/* if there already is a cotread context for this thread,
* just return it */
ctx = g_private_get (_cothread_ctx_key);
if(ctx) return ctx;
if (ctx)
return ctx;
/*
* initalize the whole of the cothreads context
*/
ctx = (cothread_context *) g_malloc (sizeof (cothread_context));
/* we consider the initiating process to be cothread 0 */