← Commit list

46abfc0da

Maciek Borzecki
Maciek Borzecki
2010-03-17
FAILED Duration: 34s

Subject

brctl: fix parsing of timespec to allow 0 (setfd, sethello..)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/brctl.c+3 -2
@@ -48,8 +48,9 @@ static ALWAYS_INLINE void strtotimeval(struct timeval *tv,
{
double secs;
#if BRCTL_USE_INTERNAL
- secs = /*bb_*/strtod(time_str, NULL);
- if (!secs)
+ char *endptr;
+ secs = /*bb_*/strtod(time_str, &endptr);
+ if (endptr == time_str)
#else
if (sscanf(time_str, "%lf", &secs) != 1)
#endif