forked from Telodendria/Telodendria
Fix some invalid structures.
This commit is contained in:
parent
787a891cb8
commit
1087069416
2 changed files with 4 additions and 4 deletions
|
@ -272,7 +272,7 @@ HashMapIterate(HashMap * map, char **key, void **value)
|
||||||
void
|
void
|
||||||
HashMapMaxLoadSet(HashMap * map, float load)
|
HashMapMaxLoadSet(HashMap * map, float load)
|
||||||
{
|
{
|
||||||
if (!map)
|
if (!map || (load > 1.0 || load <= 0))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -287,9 +287,9 @@ JsonValueFree(JsonValue * value)
|
||||||
}
|
}
|
||||||
ArrayFree(arr);
|
ArrayFree(arr);
|
||||||
break;
|
break;
|
||||||
case JSON_STRING:
|
case JSON_STRING:
|
||||||
free(value->as.string);
|
free(value->as.string);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue