Commit Diff
--- telescope.c +++ telescope.c @@ -521,6 +521,7 @@ handle_imsg_eof(struct imsg *imsg, size_t datalen) close(tab->fd); tab->fd = -1; + tab->bytes = 0; free(tab->path); tab->path = NULL; }
--- telescope.c +++ telescope.c @@ -521,6 +521,7 @@ handle_imsg_eof(struct imsg *imsg, size_t datalen) close(tab->fd); tab->fd = -1; + tab->bytes = 0; free(tab->path); tab->path = NULL; }