mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Fixed possible segmentation fault.
This commit is contained in:
		| @@ -117,7 +117,7 @@ static const double *find_var(const state *s, const char *name, int len) { | ||||
|     int i; | ||||
|     if (!s->lookup) return 0; | ||||
|     for (i = 0; i < s->lookup_len; ++i) { | ||||
|         if (s->lookup[i].name[len] == '\0' && strncmp(name, s->lookup[i].name, len) == 0) { | ||||
|         if (strncmp(name, s->lookup[i].name, len) == 0 && s->lookup[i].name[len] == '\0') { | ||||
|             return s->lookup[i].value; | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user