From: John Hodge Date: Tue, 17 Jan 2012 10:06:46 +0000 (+0800) Subject: Fixed test mode defaulting to on when invalid value X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6dda186dfd97bd992c9326627515a7c3bdd26d3a;p=tpg%2Fopendispense2.git Fixed test mode defaulting to on when invalid value --- diff --git a/src/server/main.c b/src/server/main.c index f2f66c3..b8fe7e1 100644 --- a/src/server/main.c +++ b/src/server/main.c @@ -123,7 +123,7 @@ int main(int argc, char *argv[]) giServer_Port = Config_GetValue_Int("server_port", 0); gsItemListFile = Config_GetValue("items_file", 0); - gbNoCostMode = Config_GetValue_Bool("test_mode", 0); + gbNoCostMode = (Config_GetValue_Bool("test_mode", 0) == 1); signal(SIGINT, sigint_handler); signal(SIGTERM, sigint_handler);