summaryrefslogtreecommitdiffstats
path: root/libntp/atolfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/atolfp.c')
-rw-r--r--libntp/atolfp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libntp/atolfp.c b/libntp/atolfp.c
index ff50947..adb6793 100644
--- a/libntp/atolfp.c
+++ b/libntp/atolfp.c
@@ -6,6 +6,7 @@
#include "ntp_fp.h"
#include "ntp_string.h"
+#include "ntp_assert.h"
/*
* Powers of 10
@@ -38,6 +39,8 @@ atolfp(
int isneg;
static const char *digits = "0123456789";
+ NTP_REQUIRE(str != NULL);
+
isneg = 0;
dec_i = dec_f = 0;
ndec = 0;
OpenPOWER on IntegriCloud