fixes while loop

This commit is contained in:
Moisés Guimarães 2017-11-07 10:57:06 -03:00
parent 7674a24972
commit 1c19c8847b

View File

@ -2904,7 +2904,7 @@ static int TLSX_PointFormat_Append(PointFormat* list, byte format, void* heap)
{
int ret = BAD_FUNC_ARG;
while (1) {
while (list) {
if (list->format == format) {
ret = 0; /* format already in use */
break;