summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 62883b5)
raw | patch | inline | side by side (parent: 62883b5)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 23 Jun 2011 05:48:37 +0000 (05:48 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 23 Jun 2011 05:48:37 +0000 (05:48 +0000) |
program/bindings/lua/rrdlua.c | patch | blob | history |
index a73318409d993301c50d18949f402a0acc45d8df..690ba29b740634f725852ae40ca35c5f7fbed745 100644 (file)
for (i=1; i<argc; i++) {
/* accepts string or number */
if (lua_isstring(L, i) || lua_isnumber(L, i)) {
- if (!(argv[i] = strdup(lua_tostring (L, i)))) {
+ if (!(argv[i] = lua_tostring (L, i))) {
/* raise an error and never return */
luaL_error(L, "%s - error duplicating string area for arg #%d",
cmd, i);