OSDN Git Service

* cygserver.cc (main): Call wincap.init() earlier to avoid a NULL dereference.
authorcgf <cgf>
Mon, 8 Aug 2005 19:46:48 +0000 (19:46 +0000)
committercgf <cgf>
Mon, 8 Aug 2005 19:46:48 +0000 (19:46 +0000)
winsup/cygserver/ChangeLog
winsup/cygserver/cygserver.cc

index 6ec8da4..7fcee97 100644 (file)
@@ -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>
 
        * sysv_sem.cc (semu_list): Define static to avoid gcc 4.x compiler
index 5cf82f3..d19f175 100644 (file)
@@ -567,6 +567,8 @@ main (const int argc, char *argv[])
 
   int opt;
 
+  wincap.init ();
+
   opterr = 0;
   while ((opt = getopt_long (argc, argv, opts, longopts, NULL)) != EOF)
     switch (opt)
@@ -701,7 +703,6 @@ main (const int argc, char *argv[])
   if (support_semaphores == TUN_UNDEF)
     support_semaphores = TUN_TRUE;
 
-  wincap.init ();
   if (wincap.has_security () && !setup_privileges ())
     panic ("Setting process privileges failed.");