mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	ensure variable structure is initialized before use (issue #5092)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -40,6 +40,7 @@ struct ast_var_t *ast_var_assign(const char *name, const char *value) | ||||
| 		return NULL; | ||||
| 	} | ||||
| 	 | ||||
| 	memset(var, 0, len); | ||||
| 	i = strlen(name); | ||||
| 	strncpy(var->name, name, i);  | ||||
| 	var->name[i] = '\0'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user