From 5defe7ddebe64532e7d43e6d29616d55ce127c3e Mon Sep 17 00:00:00 2001 From: Esmaeill Date: Wed, 10 Aug 2022 08:00:51 +0430 Subject: [PATCH] fix for loop --- htmixer.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/htmixer.c b/htmixer.c index 31959bb..5bd8bed 100644 --- a/htmixer.c +++ b/htmixer.c @@ -293,7 +293,9 @@ my_buff_s* cheack_loops(my_buff_s* buff) { for(h=0;hbuff,1,buff->len,fp); - fclose(fp); + if(fp!=NULL) + { + fwrite(buff->buff,1,buff->len,fp); + fclose(fp); + } + else printf("Can't open %s",genFileName); clear_var_list(); }