X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=netinstall%2Fpostinstall.cc;fp=netinstall%2Fpostinstall.cc;h=23f656e1600ef6c9626258dab054f7edd071baf3;hb=a5812bf2ff9a9cf40f4ff78dcb83f5b4c295bd18;hp=bf26f66dc714ee38b411bcf39758f963b4bbe96b;hpb=ccce6217f84987dff10ed3d2b60b9f0f65d8f25a;p=chise%2Fxemacs-chise.git- diff --git a/netinstall/postinstall.cc b/netinstall/postinstall.cc index bf26f66..23f656e1 100644 --- a/netinstall/postinstall.cc +++ b/netinstall/postinstall.cc @@ -102,13 +102,19 @@ do_postinstall (HINSTANCE h) next_dialog = 0; char* cygroot = find_cygwin_root (&issystem); int i; - for (i=0; shells[i]; i++) + + sh = 0; + + if (cygroot) { - sh = backslash (concat (cygroot, shells[i], 0)); - if (_access (sh, 0) == 0) - break; - free (sh); - sh = 0; + for (i=0; shells[i]; i++) + { + sh = backslash (concat (cygroot, shells[i], 0)); + if (_access (sh, 0) == 0) + break; + free (sh); + sh = 0; + } } char old_path[_MAX_PATH];