mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-25 14:24:03 +02:00
9dfc3e34ee
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17782 3c298f89-4303-0410-b956-a3cf2f4a3e73
14 lines
288 B
Diff
14 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
|