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];