locale-root: fixed uninitialized variable 21/15021/1
authorThierry Bultel <thierry.bultel@iot.bzh>
Thu, 5 Jul 2018 08:21:31 +0000 (10:21 +0200)
committerThierry Bultel <thierry.bultel@iot.bzh>
Thu, 5 Jul 2018 08:22:37 +0000 (10:22 +0200)
This has become an error since a gcc update

Change-Id: Ib49bd8c46091efdfe9483bb29a023a4e97c8db2f
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
src/locale-root.c

index 1d255bf..40cd050 100644 (file)
@@ -157,7 +157,7 @@ static struct locale_folder *search_folder(struct locale_container *container, c
  */
 static int init_container(struct locale_container *container, int dirfd)
 {
-       int rc, sfd;
+       int rc = 0, sfd;
        DIR *dir;
        struct dirent *dent;
        struct stat st;