From 0288fd1ec9c6a7c3f4d4ab7b18d0c08e6374d85b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 14 Apr 2012 16:18:40 -0400 Subject: [PATCH] Bug - Fixed incorrect Lua API return value (thanks to Oleksii Tsai). --- AUTHORS | 1 + ChangeLog | 1 + src/API.cpp | 5 ++--- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 7f348be8a..b15ee2d71 100644 --- a/AUTHORS +++ b/AUTHORS @@ -70,6 +70,7 @@ The following submitted code, packages or analysis, and deserve special thanks: Luke Macken Sam Stuck Christoph Robbert + Oleksii Tsai Thanks to the following, who submitted detailed bug reports and excellent suggestions: diff --git a/ChangeLog b/ChangeLog index 8758fdac5..de22cacdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ Bugs + Fixed bug where ISO dates were parsed and the TZ was modified, which should have no bearing on a Zulu time. + Fixed man page typos. + + Fixed incorrect Lua API return value (thanks to Oleksii Tsai). ------ old releases ------------------------------ diff --git a/src/API.cpp b/src/API.cpp index ddbc25cc0..86b613f0e 100644 --- a/src/API.cpp +++ b/src/API.cpp @@ -63,8 +63,7 @@ static int api_task_debug_message (lua_State* L) } //////////////////////////////////////////////////////////////////////////////// -// Causes the shell or interactive mode task to exit. Ordinarily this does not -// occur. +// Causes the shell mode task to exit. Ordinarily this does not occur. static int api_task_exit (lua_State*) { // TODO Is this the correct exception? How does the shell handle this? @@ -88,7 +87,7 @@ static int api_task_get (lua_State* L) lua_pushstring (L, ""); } - return 0; + return 1; // 1 returned value. } ////////////////////////////////////////////////////////////////////////////////