summaryrefslogtreecommitdiff
path: root/core/src/xmake/os/tmpdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/os/tmpdir.c')
-rw-r--r--core/src/xmake/os/tmpdir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/xmake/os/tmpdir.c b/core/src/xmake/os/tmpdir.c
index 4396603d4..6d20fc546 100644
--- a/core/src/xmake/os/tmpdir.c
+++ b/core/src/xmake/os/tmpdir.c
@@ -38,9 +38,10 @@ tb_int_t xm_os_tmpdir(lua_State *lua) {
// os.tmpdir()
tb_char_t path[TB_PATH_MAXN];
- if (tb_directory_temporary(path, sizeof(path)))
+ if (tb_directory_temporary(path, sizeof(path))) {
lua_pushstring(lua, path);
- else
+ } else {
lua_pushnil(lua);
+ }
return 1;
}