aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/brctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/brctl.c b/networking/brctl.c
index 57074cd73..77bb8f155 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -48,8 +48,9 @@ static ALWAYS_INLINE void strtotimeval(struct timeval *tv,
48{ 48{
49 double secs; 49 double secs;
50#if BRCTL_USE_INTERNAL 50#if BRCTL_USE_INTERNAL
51 secs = /*bb_*/strtod(time_str, NULL); 51 char *endptr;
52 if (!secs) 52 secs = /*bb_*/strtod(time_str, &endptr);
53 if (endptr == time_str)
53#else 54#else
54 if (sscanf(time_str, "%lf", &secs) != 1) 55 if (sscanf(time_str, "%lf", &secs) != 1)
55#endif 56#endif