Commit e835b3ad authored by Lev Walkin's avatar Lev Walkin

removed undefined behavior warning

parent 547973dc
...@@ -746,9 +746,9 @@ cb_failed: ...@@ -746,9 +746,9 @@ cb_failed:
er.structure_ptr = sptr; er.structure_ptr = sptr;
cleanup: cleanup:
if(encs) { if(encs) {
while(encs_count-- > 0) { size_t n;
if(encs[encs_count].buffer) for(n = 0; n < encs_count; n++) {
FREEMEM(encs[encs_count].buffer); FREEMEM(encs[n].buffer);
} }
FREEMEM(encs); FREEMEM(encs);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment