mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: Fixed some cppcheck warnings.
(cherry picked from commit e3311d03db)
This commit is contained in:
committed by
Andreas Schneider
parent
9c8f285a98
commit
8796756ae5
@@ -75,12 +75,12 @@ int benchmarks_ping_latency (const char *host, float *average){
|
||||
}
|
||||
if(!found)
|
||||
goto parseerror;
|
||||
fclose(fd);
|
||||
pclose(fd);
|
||||
return 0;
|
||||
|
||||
parseerror:
|
||||
fprintf(stderr,"Parse error : couldn't locate average in %s",line);
|
||||
fclose(fd);
|
||||
pclose(fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user