mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-30 03:00:21 -04:00 
			
		
		
		
	Fixed possibly undefined variable warnings by initializing variables to 0.
This commit is contained in:
		
							parent
							
								
									37b5c831b4
								
							
						
					
					
						commit
						7edad28036
					
				| @ -258,7 +258,7 @@ int mbedtls_entropy_update_manual( mbedtls_entropy_context *ctx, | ||||
|  */ | ||||
| static int entropy_gather_internal( mbedtls_entropy_context *ctx ) | ||||
| { | ||||
|     int ret, i, have_one_strong = 0; | ||||
|     int ret = 0, i, have_one_strong = 0; | ||||
|     unsigned char buf[MBEDTLS_ENTROPY_MAX_GATHER]; | ||||
|     size_t olen; | ||||
| 
 | ||||
|  | ||||
| @ -74,7 +74,7 @@ int mbedtls_hmac_drbg_update_ret( mbedtls_hmac_drbg_context *ctx, | ||||
|     unsigned char rounds = ( additional != NULL && add_len != 0 ) ? 2 : 1; | ||||
|     unsigned char sep[1]; | ||||
|     unsigned char K[MBEDTLS_MD_MAX_SIZE]; | ||||
|     int ret; | ||||
|     int ret = 0; | ||||
| 
 | ||||
|     for( sep[0] = 0; sep[0] < rounds; sep[0]++ ) | ||||
|     { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benjamin Kier
						Benjamin Kier