Make gcc die on init overflow of an array.
[rsync.git] / tls.c
diff --git a/tls.c b/tls.c
index c50fa6c3e81bc8f87c5b842b873e58428324db2c..cb497360e88b5aa16a78d166bbe94b335e55921d 100644 (file)
--- a/tls.c
+++ b/tls.c
@@ -60,7 +60,8 @@ int nsec_times = 0;
 
 static int stat_xattr(const char *fname, STRUCT_STAT *fst)
 {
-       int mode, rdev_major, rdev_minor, uid, gid, len;
+       unsigned int mode;
+       int rdev_major, rdev_minor, uid, gid, len;
        char buf[256];
 
        if (am_root >= 0 || IS_DEVICE(fst->st_mode) || IS_SPECIAL(fst->st_mode))