diff options
author | Steven Barth <steven@midlink.org> | 2009-06-21 13:41:18 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-06-21 13:41:18 +0000 |
commit | a2c71bf739b220db58a063e976e7d3b2b320a53b (patch) | |
tree | 0fb95b5318a571289929c170e2aed9b1a0007248 /libs/nixio/src/fs.c | |
parent | 8616bbc8725ad3091190cd89913ca7a936e44063 (diff) |
nixio: Resolve namespace clashes
Diffstat (limited to 'libs/nixio/src/fs.c')
-rw-r--r-- | libs/nixio/src/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/nixio/src/fs.c b/libs/nixio/src/fs.c index 10727d030b..6ebfbaa421 100644 --- a/libs/nixio/src/fs.c +++ b/libs/nixio/src/fs.c @@ -254,7 +254,7 @@ static int nixio_link(lua_State *L) { static int nixio_utimes(lua_State *L) { const char *path = luaL_checkstring(L, 1); - if (lua_gettop(L) < 2) { + if (lua_gettop(L) < 2 || (lua_isnoneornil(L, 2) && lua_isnoneornil(L, 3))) { return nixio__pstatus(L, !utimes(path, NULL)); } else { double atime = luaL_checknumber(L, 2); |