Fixed compile warnings about uninitialized variables in test library.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 06 Jan 2016 22:39:29 +0100
changeset 10037 e2343ac4788e
parent 10036 e6bb3d0d0902
child 10038 2bab6f8d403e
Fixed compile warnings about uninitialized variables in test library. Found by buildbot.
src/test/SDL_test_compare.c
--- a/src/test/SDL_test_compare.c	Wed Jan 06 22:39:04 2016 +0100
+++ b/src/test/SDL_test_compare.c	Wed Jan 06 22:39:29 2016 +0100
@@ -43,7 +43,7 @@
    int bpp, bpp_reference;
    Uint8 *p, *p_reference;
    int dist;
-   int sampleErrorX, sampleErrorY, sampleDist;
+   int sampleErrorX = 0, sampleErrorY = 0, sampleDist = 0;
    Uint8 R, G, B, A;
    Uint8 Rd, Gd, Bd, Ad;
    char imageFilename[128];