Fix dead assignment librz/util/print.c
This commit is contained in:
parent
2d12d2423b
commit
e7e9bbb4aa
1 changed files with 1 additions and 5 deletions
|
|
@ -1453,11 +1453,7 @@ RZ_API void rz_print_zoom_buf(RzPrint *p, void *user, RzPrintZoomCallback cb, ut
|
|||
len = 1;
|
||||
}
|
||||
|
||||
if (mode == p->zoom->mode && from == p->zoom->from && to == p->zoom->to && size == p->zoom->size) {
|
||||
// get from cache
|
||||
bufz = p->zoom->buf;
|
||||
size = p->zoom->size;
|
||||
} else {
|
||||
if (mode != p->zoom->mode || from != p->zoom->from || to != p->zoom->to || size != p->zoom->size) {
|
||||
mode = p->zoom->mode;
|
||||
bufz = (ut8 *)calloc(1, len);
|
||||
if (!bufz) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue