diff options
| -rw-r--r-- | xmake/core/base/tty.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/base/tty.lua b/xmake/core/base/tty.lua index 742b819ab..dd053b3e6 100644 --- a/xmake/core/base/tty.lua +++ b/xmake/core/base/tty.lua @@ -550,7 +550,10 @@ function tty.session_id() session_id = hash.strhash32(sid) end end - tty._SESSION_ID = session_id or 0 + if not session_id then + session_id = "00000000" + end + tty._SESSION_ID = session_id end return session_id end |
