mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Bug fix on some bad expressions.
This commit is contained in:
		| @@ -68,6 +68,7 @@ static te_expr *new_expr(const int type, const te_expr *parameters[]) { | ||||
|     const int psize = sizeof(void*) * arity; | ||||
|     const int size = sizeof(te_expr) + psize + (IS_CLOSURE(type) ? sizeof(void*) : 0); | ||||
|     te_expr *ret = malloc(size); | ||||
|     memset(ret, 0, size); | ||||
|     if (arity && parameters) { | ||||
|         memcpy(ret->parameters, parameters, psize); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user