* sync.h (muto::initforce): Force initialization even when name != NULL.
* grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure is !NO_COPY.
This commit is contained in:
@ -28,6 +28,7 @@ public:
|
||||
void *tls; /* Tls of lock owner. */
|
||||
// class muto *next;
|
||||
|
||||
muto *initforce (const char *s) {name = NULL; return init (s);}
|
||||
/* The real constructor. */
|
||||
muto *init (const char *) __attribute__ ((regparm (2)));
|
||||
|
||||
|
Reference in New Issue
Block a user