From: Tobias Ulmer Date: Fri, 15 Nov 2013 15:18:49 +0000 (+0100) Subject: Initialize shift, gcc complains because the conditions are a little twisted X-Git-Tag: e2factory-2.3.15rc1~380 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=fd3b4076427236c2dcb8fb7d38816e467f35a920;p=e2factory.git Initialize shift, gcc complains because the conditions are a little twisted --- diff --git a/generic/le2lib.c b/generic/le2lib.c index b0524f0..4296542 100644 --- a/generic/le2lib.c +++ b/generic/le2lib.c @@ -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) {