summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-api-so.c2
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);