mirror of
https://github.com/jfdelnero/rf-tools.git
synced 2026-07-12 05:44:15 -04:00
Fix warning at compilation.
This commit is contained in:
@@ -295,7 +295,13 @@ int loadfrm(frame * frm, int idx, char *path)
|
||||
|
||||
memset((char*)str,0,sizeof(str));
|
||||
|
||||
fgets ((char*)&str, sizeof(str), f);
|
||||
if ( !fgets ((char*)&str, sizeof(str), f) )
|
||||
{
|
||||
fclose(f);
|
||||
frm[idx].frm[0] = '\0';
|
||||
frm[idx].quartets_cnt = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
strtmp = strchr(str,'\n');
|
||||
if(strtmp)
|
||||
|
||||
Reference in New Issue
Block a user