diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-04 09:04:16 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-04 09:04:16 +0100 |
commit | 84fb99890ff127c763efc5014633b8e3a4c762b4 (patch) | |
tree | cc960fd6f96f92e2174a86ffa274f62a9c2d0fcd /src/plot | |
parent | b6e716f4ece4105eeaa2ff8971d1e0b6a78f73be (diff) | |
download | libnsfb-84fb99890ff127c763efc5014633b8e3a4c762b4.tar.gz libnsfb-84fb99890ff127c763efc5014633b8e3a4c762b4.tar.bz2 |
generic: Initialise variable to silence warning
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/plot')
-rw-r--r-- | src/plot/generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plot/generic.c b/src/plot/generic.c index 15654b0..e343390 100644 --- a/src/plot/generic.c +++ b/src/plot/generic.c @@ -267,7 +267,7 @@ static bool polygon(nsfb_t *nsfb, const int *p, unsigned int n, nsfb_colour_t c) int poly_x0, poly_y0; /* Bounding box top left corner */ int poly_x1, poly_y1; /* Bounding box bottom right corner */ int i, j; /* indexes */ - int x0, x1; /* filled span extents */ + int x0 = 0, x1 = 0; /* filled span extents */ int y; /* current y coordinate */ int y_max; /* bottom of plot area */ nsfb_bbox_t fline; |