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

View file

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