summaryrefslogtreecommitdiff
path: root/package/busybox/patches/801-brctl_zero_time.patch
blob: e083f9f71f5a8a0ea0e44e8f4dd7b75566fecc4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -34,8 +34,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