From: NeilBrown Date: Fri, 29 Sep 2017 02:43:55 +0000 (+1000) Subject: Initialize 'o' just in case. X-Git-Tag: v1.2~14 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=0de847b3717d8bb97b7d73d203acb4ffae16381b;p=wiggle.git Initialize 'o' just in case. Some compilers complain that this might be used uninitialised. They are wrong as it is only used when 'found' is non-zero, and it is always set before found is set, but as I like -Werror, I need to handle bad warnings too. Fixes #6 Signed-off-by: NeilBrown --- diff --git a/vpatch.c b/vpatch.c index 2c574c8..a6534a4 100644 --- a/vpatch.c +++ b/vpatch.c @@ -801,7 +801,7 @@ static int mcontains(struct mpos pos, struct elmnt e; int found = 0; struct mp mp; - int o; + int o = 0; int len = strlen(search); do {