Fix warnings

This commit is contained in:
Vladimir Dubrovin committed 2026-04-08 21:13:45 +03:00
1 parent 0381461495
commit 8cb8be1be8
11 files changed
+42 -46

No files matched your search

+2 -2
View File
@@ -32,7 +32,7 @@ char **load_string(FILE *f,int max_count_str, int *countloadstr,
/*find start service section*/
while(!feof(f))
{
fgets(tmpbuf1, 1023,f);
if(!fgets(tmpbuf1, 1023,f)) return NULL;
if ((strstr(tmpbuf1,start))!=NULL) { i++; break; }
tmpbuf1[0]='\0';
}
@@ -51,7 +51,7 @@ char **load_string(FILE *f,int max_count_str, int *countloadstr,
i=0;
while ( !feof(f) || i< max_count_str)
{
fgets(tmpbuf1, 1023,f);
if(!fgets(tmpbuf1, 1023,f)) return NULL;
if ((strstr(tmpbuf1,stop))!=NULL) { break; }