From 0de847b3717d8bb97b7d73d203acb4ffae16381b Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 29 Sep 2017 12:43:55 +1000 Subject: [PATCH] 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 --- vpatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5