]> git.e2factory.org Git - e2factory.git/commitdiff
Initialize shift, gcc complains because the conditions are a little twisted
authorTobias Ulmer <tu@emlix.com>
Fri, 15 Nov 2013 15:18:49 +0000 (16:18 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
generic/le2lib.c

index b0524f0f88abe86ade2f121b285cc1ae7c719ae5..4296542913224e1d7bdcb83085e33ecd67cc3a90 100644 (file)
@@ -654,7 +654,7 @@ do_parse_mode(lua_State *lua)
 static mode_t
 calc_mode(mode_t mode, int owners, int op, mode_t protection)
 {
-       int i, shift;
+       int i, shift = 0;
 
        /* Loop over all possible owners and calc shift */
        for (i = OWN_USER; i <= OWN_OTHER ; i <<= 1) {