From fd3b4076427236c2dcb8fb7d38816e467f35a920 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 15 Nov 2013 16:18:49 +0100 Subject: [PATCH] Initialize shift, gcc complains because the conditions are a little twisted --- generic/le2lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5