Add assertions.
[pspp-builds.git] / src / data-in.c
index 8f36dcb046d298c3e431b59fc53617c939ca4113..d17a2cf7d67746e54032b42b3b8d41841862b9c9 100644 (file)
@@ -1363,6 +1363,8 @@ data_in (struct data_in *i)
 {
   const struct fmt_desc *const fmt = &formats[i->format.type];
 
+  assert (check_input_specifier (&i->format, 0));
+
   /* Check that we've got a string to work with. */
   if (i->e == i->s || i->format.w <= 0)
     {