src/afb-api-so.c: fix uninitialized variable
authorStephane Desneux <stephane.desneux@iot.bzh>
Sat, 26 Aug 2017 15:23:50 +0000 (17:23 +0200)
committerStephane Desneux <stephane.desneux@iot.bzh>
Sat, 26 Aug 2017 15:23:50 +0000 (17:23 +0200)
Change-Id: If7f576e8f4bdc613d836c158df6e5f0bbfea87b7
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
src/afb-api-so.c

index 9744bae..9d8d9c0 100644 (file)
@@ -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);