* cygheap.h (shared_prefix): De-const.
(shared_prefix_buf): Add static buffer for shared prefix to avoid additional allocation. * cygheap.cc (cygheap_init): Set cygheap->shared_prefix to cygheap->shared_prefix_buf and strcpy.
This commit is contained in:
@@ -279,7 +279,8 @@ struct init_cygheap
|
||||
cwdstuff cwd;
|
||||
dtable fdtab;
|
||||
LUID luid[SE_NUM_PRIVS];
|
||||
const char *shared_prefix;
|
||||
char *shared_prefix;
|
||||
char shared_prefix_buf[8];
|
||||
#ifdef DEBUGGING
|
||||
cygheap_debug debug;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user