Initial revision
[chise/xemacs-chise.git] / netinstall / postinstall.cc
index 23f656e..bf26f66 100644 (file)
@@ -102,19 +102,13 @@ do_postinstall (HINSTANCE h)
   next_dialog = 0;
   char* cygroot = find_cygwin_root (&issystem);
   int i;
-
-  sh = 0;
-
-  if (cygroot)
+  for (i=0; shells[i]; i++)
     {
-      for (i=0; shells[i]; i++)
-       {
-         sh = backslash (concat (cygroot, shells[i], 0));
-         if (_access (sh, 0) == 0)
-           break;
-         free (sh);
-         sh = 0;
-       }
+      sh = backslash (concat (cygroot, shells[i], 0));
+      if (_access (sh, 0) == 0)
+       break;
+      free (sh);
+      sh = 0;
     }
 
   char old_path[_MAX_PATH];