summaryrefslogtreecommitdiffstats
path: root/ctl-lib
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-03-21 13:42:23 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-03-21 13:42:23 +0100
commit44f5060de064d3acab585d26d8141df3f0481c6c (patch)
treec40fe987e631e3f1d4522ecab8190f71e38a2f55 /ctl-lib
parentef5d0e9cc23a3770f8cf585ef3b59f17533734e2 (diff)
Linting: Initialize fullprefix variable
Change-Id: I24b0b0f87f1315220cf668c170fc3c13a85f46bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib')
-rw-r--r--ctl-lib/ctl-lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c
index 891e857..fd40f1c 100644
--- a/ctl-lib/ctl-lua.c
+++ b/ctl-lib/ctl-lua.c
@@ -1284,7 +1284,7 @@ PUBLIC int LuaConfigExec (AFB_ApiT apiHandle, const char* prefix) {
int err, index;
// search for default policy config files
- char fullprefix[CONTROL_MAXPATH_LEN];
+ char fullprefix[CONTROL_MAXPATH_LEN] = "";
if(prefix)
strncpy (fullprefix, prefix, strlen(prefix)+1);
else