2008-11-10 06:38:59 +08:00
|
|
|
--- a/networking/brctl.c
|
|
|
|
+++ b/networking/brctl.c
|
2009-09-28 20:38:46 +08:00
|
|
|
@@ -48,8 +48,9 @@ static ALWAYS_INLINE void strtotimeval(s
|
2008-11-10 06:38:59 +08:00
|
|
|
{
|
|
|
|
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
|