From 0ab7d8c1d2d3cfc2d98c756c852034d037e283f1 Mon Sep 17 00:00:00 2001 From: Tom Greig <tom@tomg.xyz> Date: Fri, 11 Apr 2025 10:18:03 +0100 Subject: [PATCH] Fix the 'may be used uninitialised' error ...that I could swear I've fixed, like, six times at this point. I guess I just did it on different computers and then didn't commit it because I'm lazy. --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 6665290..a8218a8 100644 --- a/src/main.c +++ b/src/main.c @@ -1910,10 +1910,10 @@ static void plot_draw( GtkDrawingArea* plot, ( context->data->y[i].axis == RIGHT && context->yrlog ); - double x; - double xnext; - double y; - double ynext; + double x = 0; + double xnext = 0; + double y = 0; + double ynext = 0; if ( context->data->y[i].present ) { -- GitLab