* cygserver.cc (main): Call wincap.init() earlier to avoid a NULL dereference.
This commit is contained in:
parent
d4c8f095ba
commit
c9508cb4ec
@ -1,3 +1,8 @@
|
|||||||
|
2005-08-08 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* cygserver.cc (main): Call wincap.init() earlier to avoid a NULL
|
||||||
|
dereference.
|
||||||
|
|
||||||
2005-06-14 Corinna Vinschen <corinna@vinschen.de>
|
2005-06-14 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* sysv_sem.cc (semu_list): Define static to avoid gcc 4.x compiler
|
* sysv_sem.cc (semu_list): Define static to avoid gcc 4.x compiler
|
||||||
|
@ -567,6 +567,8 @@ main (const int argc, char *argv[])
|
|||||||
|
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
|
wincap.init ();
|
||||||
|
|
||||||
opterr = 0;
|
opterr = 0;
|
||||||
while ((opt = getopt_long (argc, argv, opts, longopts, NULL)) != EOF)
|
while ((opt = getopt_long (argc, argv, opts, longopts, NULL)) != EOF)
|
||||||
switch (opt)
|
switch (opt)
|
||||||
@ -701,7 +703,6 @@ main (const int argc, char *argv[])
|
|||||||
if (support_semaphores == TUN_UNDEF)
|
if (support_semaphores == TUN_UNDEF)
|
||||||
support_semaphores = TUN_TRUE;
|
support_semaphores = TUN_TRUE;
|
||||||
|
|
||||||
wincap.init ();
|
|
||||||
if (wincap.has_security () && !setup_privileges ())
|
if (wincap.has_security () && !setup_privileges ())
|
||||||
panic ("Setting process privileges failed.");
|
panic ("Setting process privileges failed.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user