changeset 21761:7c159e118cd4

(Fread_from_string): Initialize startval and endval.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Apr 1998 22:00:26 +0000
parents f97c01dfd603
children b2746acaa663
files src/lread.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Sat Apr 25 03:37:36 1998 +0000
+++ b/src/lread.c	Sat Apr 25 22:00:26 1998 +0000
@@ -1175,6 +1175,7 @@
   else
     {
       CHECK_NUMBER (end, 2);
+      endval = XINT (end);
       if (endval < 0 || endval > XSTRING (string)->size)
 	args_out_of_range (string, end);
     }
@@ -1184,6 +1185,7 @@
   else
     {
       CHECK_NUMBER (start, 1);
+      startval = XINT (start);
       if (startval < 0 || startval > endval)
 	args_out_of_range (string, start);
     }