X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2b1e3b1eda0915dede0146e8ea5c183a0483acee..640006c64cc4f0c6a37c8d5ecc7935ec3edfa65b:/src/bindings/lua/lua_utils.cpp diff --git a/src/bindings/lua/lua_utils.cpp b/src/bindings/lua/lua_utils.cpp index 82a3689fb6..952f4de0a6 100644 --- a/src/bindings/lua/lua_utils.cpp +++ b/src/bindings/lua/lua_utils.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2019. The SimGrid Team. +/* Copyright (c) 2010-2020. The SimGrid Team. * All rights reserved. * * This program is free software; you can redistribute it and/or modify it @@ -26,11 +26,9 @@ */ const char* sglua_tostring(lua_State* L, int index) { - static char buff[64]; switch (lua_type(L, index)) { - case LUA_TNIL: snprintf(buff, 4, "nil"); break; @@ -87,7 +85,6 @@ const char* sglua_tostring(lua_State* L, int index) */ const char* sglua_keyvalue_tostring(lua_State* L, int key_index, int value_index) { - static char buff[64]; /* value_tostring also always returns the same pointer */ int len = snprintf(buff, 63, "[%s] -> ", sglua_tostring(L, key_index));