Browse Source

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

Sam Lantinga 1 year ago
parent
commit
48d80efb51
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/SDL_properties.c

+ 1 - 1
src/SDL_properties.c

@@ -98,7 +98,7 @@ void SDL_QuitProperties(void)
 
 SDL_PropertiesID SDL_CreateProperties(void)
 {
-    SDL_PropertiesID props;
+    SDL_PropertiesID props = 0;
     SDL_Properties *properties = NULL;
     SDL_bool inserted = SDL_FALSE;