mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
sh: Optimize setprompt(0).
Avoid doing work to print an empty prompt (such as when reading scripts).
This commit is contained in:
parent
5036353a49
commit
c39f3bac71
1 changed files with 2 additions and 0 deletions
|
|
@ -1930,6 +1930,8 @@ static void
|
|||
setprompt(int which)
|
||||
{
|
||||
whichprompt = which;
|
||||
if (which == 0)
|
||||
return;
|
||||
|
||||
#ifndef NO_HISTORY
|
||||
if (!el)
|
||||
|
|
|
|||
Loading…
Reference in a new issue