aboutsummaryrefslogtreecommitdiffstats
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-12-13 15:02:54 +0100
commit183119616ceadfeb7168fdd0ef3484bb80a7ab7f (patch)
treec40fe987e631e3f1d4522ecab8190f71e38a2f55 /ctl-lib
parenta4137b366e0a87109a68f4aae0360e79b6187c10 (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