openwrtv3/package/busybox/patches/801-brctl_zero_time.patch
Nicolas Thill 91750d01a7 busybox: update to v1.14.4 (closes: #5619)
SVN-Revision: 17782
2009-09-28 12:38:46 +00:00

13 lines
288 B
Diff

--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -48,8 +48,9 @@ static ALWAYS_INLINE void strtotimeval(s
{
double secs;
#if BRCTL_USE_INTERNAL
+ errno = 0;
secs = /*bb_*/strtod(time_str, NULL);
- if (!secs)
+ if (errno)
#else
if (sscanf(time_str, "%lf", &secs) != 1)
#endif