Browse Source

Fixed warning C4701: potentially uninitialized local variable 'rndctx' used

Sam Lantinga 1 năm trước cách đây
mục cha
commit
8eba5b75ca
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      test/testqsort.c

+ 2 - 0
test/testqsort.c

@@ -53,6 +53,8 @@ int main(int argc, char *argv[])
     SDLTest_CommonState *state;
     int seed_seen = 0;
 
+    SDL_zero(rndctx);
+
     /* Initialize test framework */
     state = SDLTest_CommonCreateState(argv, 0);
     if (!state) {