diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-08-03 15:51:49 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-08-08 12:35:23 +0000 |
commit | 36ed31c2f7ff6d5395a2efc5bebf3cda421568df (patch) | |
tree | feee18baa9fff0e07d04728d6f6a4675e333debf /ctl-lib/ctl-lua.c | |
parent | 29307eab0fbe111d686b3061982207cb0e7b20d8 (diff) |
Fix wrong computed length
Change-Id: I020a1619c94a3a22d66e6657f64d4cedda3a1e62
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-lua.c')
-rw-r--r-- | ctl-lib/ctl-lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c index ecfd0f3..67ef21a 100644 --- a/ctl-lib/ctl-lua.c +++ b/ctl-lib/ctl-lua.c @@ -1327,11 +1327,11 @@ int LuaConfigLoad(AFB_ApiT apiHandle, const char *prefix) { // set package.path lua variable use the CONTROL_PLUGIN_PATH as it could // have to find external lua packages in those directories + spath = GetDefaultPluginSearchPath(apiHandle, prefix); base_len = strlen(LUA_PATH_VALUE); - spath_len = strlen(CONTROL_PLUGIN_PATH); + spath_len = strlen(spath); token_nb = spath_len ? 1:0; - spath = GetDefaultPluginSearchPath(apiHandle, prefix); sep = spath; while((sep = strchr(sep, ':')) != NULL) { token_nb++; |