]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fread_from_string): Initialize startval and endval.
authorRichard M. Stallman <rms@gnu.org>
Sat, 25 Apr 1998 22:00:26 +0000 (22:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 25 Apr 1998 22:00:26 +0000 (22:00 +0000)
src/lread.c

index b3a592ce6debd9c10ab635d02b8201b38003a870..91633d49bf63eab7a9e86c9b079d9f1ec17c1ff9 100644 (file)
@@ -1175,6 +1175,7 @@ START and END optionally delimit a substring of STRING from which to read;\n\
   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 @@ START and END optionally delimit a substring of STRING from which to read;\n\
   else
     {
       CHECK_NUMBER (start, 1);
+      startval = XINT (start);
       if (startval < 0 || startval > endval)
        args_out_of_range (string, start);
     }