mirror of https://github.com/openssl/openssl.git
				
				
				
			q may be used uninitialised
This commit is contained in:
		
							parent
							
								
									52c29b7b99
								
							
						
					
					
						commit
						8435a755fd
					
				|  | @ -8,7 +8,7 @@ | |||
| 
 | ||||
| int main(int argc, char *argv[]) | ||||
| 	{ | ||||
| 	char *p, *q, *program; | ||||
| 	char *p, *q = 0, *program; | ||||
| 
 | ||||
| 	p = strrchr(argv[0], '/'); | ||||
| 	if (!p) p = strrchr(argv[0], '\\'); | ||||
|  | @ -34,7 +34,8 @@ int main(int argc, char *argv[]) | |||
| 		} | ||||
| 
 | ||||
| 	for(p = program; *p; p++) | ||||
| 		if (islower(*p)) *p = toupper(*p); | ||||
| 		if (islower((unsigned char)(*p))) | ||||
| 			*p = toupper((unsigned char)(*p)); | ||||
| 
 | ||||
| 	q = strstr(program, "TEST"); | ||||
| 	if (q > p && q[-1] == '_') q--; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue