Check annotate_hash_table return value

This commit is contained in:
Andrew Murray 2026-04-18 19:25:52 +10:00
parent 087376dc18
commit 425da0ed8a

View File

@ -1375,7 +1375,9 @@ quantize(
fflush(stdout);
timer = clock();
#endif
annotate_hash_table(root, h, &nPaletteEntries);
if (!annotate_hash_table(root, h, &nPaletteEntries)) {
goto error_3;
}
#ifdef DEBUG
printf("done (%f)\n", (clock() - timer) / (double)CLOCKS_PER_SEC);
#endif