diff --git a/find/parser.c b/find/parser.c
index 23a3374..667c7eb 100644
--- a/find/parser.c
+++ b/find/parser.c
@@ -2736,7 +2736,7 @@ get_num (char *str,
         double *fractional_part,
         enum comparison_type *comp_type)
 {
-  char **pend;
+  char **pend = NULL;
   boolean ok;

   if (str == NULL)
@@ -2759,7 +2759,7 @@ get_num (char *str,
   ok = xstrtoumax (str, pend, 10, num, "") == LONGINT_OK;
   if (ok && fractional_part)
     {
-      if (*pend)
+      if (pend && *pend)
        {
          if ('.'== (**pend))
            {
