diff options
author | Stephane Desneux <stephane.desneux@iot.bzh> | 2017-08-26 17:23:50 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@iot.bzh> | 2017-08-26 17:23:50 +0200 |
commit | d0b0b6fe77b8ea06bac2830baa9008eefe1917ba (patch) | |
tree | 93f2d11efb89a2ecfc21c506256a6eef9b850d52 | |
parent | 0f1a3e89464a77d398ce89bf25abd7ea660c4b34 (diff) |
src/afb-api-so.c: fix uninitialized variable
Change-Id: If7f576e8f4bdc613d836c158df6e5f0bbfea87b7
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
-rw-r--r-- | src/afb-api-so.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-api-so.c b/src/afb-api-so.c index 9744bae2..9d8d9c07 100644 --- a/src/afb-api-so.c +++ b/src/afb-api-so.c @@ -86,7 +86,7 @@ static int adddirs(char path[PATH_MAX], size_t end, struct afb_apiset *apiset, i DIR *dir; struct dirent *dent; size_t len; - int rc; + int rc=0; /* open the DIR now */ dir = opendir(path); |