Fix build break

This commit is contained in:
Arun Prakash Jana 2020-06-27 23:14:14 +05:30
parent 56b96cbf74
commit cb9e785145
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 5 additions and 11 deletions

View File

@ -5781,20 +5781,14 @@ nochange:
case SEL_CDBEGIN: // fallthrough
case SEL_CDLAST: // fallthrough
case SEL_CDROOT:
switch (sel) {
case SEL_CDHOME:
if (sel == SEL_CDHOME)
dir = home;
break;
case SEL_CDBEGIN:
else if (sel == SEL_CDBEGIN)
dir = ipath;
break;
case SEL_CDLAST:
else if (sel == SEL_CDLAST)
dir = lastdir;
break;
default: /* SEL_CDROOT */
dir = "/";
break;
}
else
dir = "/"; /* SEL_CDROOT */
if (!dir || !*dir) {
printwait(messages[MSG_NOT_SET], &presel);