diff options
| author | Ray <[email protected]> | 2019-05-27 00:18:15 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-05-27 00:18:15 +0200 |
| commit | 87774a0a21f8d2998b4dc13e989005270476ae92 (patch) | |
| tree | 4228376c752b1760be44cc8582725ecac522939b /examples/text/text_raylib_fonts.c | |
| parent | 241c4c8d14225bdf30c168802d4b16b59d5043e0 (diff) | |
| download | raylib-87774a0a21f8d2998b4dc13e989005270476ae92.tar.gz raylib-87774a0a21f8d2998b4dc13e989005270476ae92.zip | |
Review variables initialization
Diffstat (limited to 'examples/text/text_raylib_fonts.c')
| -rw-r--r-- | examples/text/text_raylib_fonts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/text/text_raylib_fonts.c b/examples/text/text_raylib_fonts.c index 06e63725..d7e41a78 100644 --- a/examples/text/text_raylib_fonts.c +++ b/examples/text/text_raylib_fonts.c @@ -26,7 +26,7 @@ int main(void) InitWindow(screenWidth, screenHeight, "raylib [text] example - raylib fonts"); // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) - Font fonts[MAX_FONTS]; + Font fonts[MAX_FONTS] = { 0 }; fonts[0] = LoadFont("resources/fonts/alagard.png"); fonts[1] = LoadFont("resources/fonts/pixelplay.png"); @@ -48,7 +48,7 @@ int main(void) const int spacings[MAX_FONTS] = { 2, 4, 8, 4, 3, 4, 4, 1 }; - Vector2 positions[MAX_FONTS]; + Vector2 positions[MAX_FONTS] = { 0 }; for (int i = 0; i < MAX_FONTS; i++) { |
