mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
dc1b6a3961
SVN-Revision: 13163
14 lines
288 B
Diff
14 lines
288 B
Diff
--- 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
|