From: Richard M. Stallman Date: Sat, 25 Apr 1998 22:00:26 +0000 (+0000) Subject: (Fread_from_string): Initialize startval and endval. X-Git-Tag: emacs-20.3~1315 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8028e0eddac2a27231f958f541602d2a66ab647a;p=emacs.git (Fread_from_string): Initialize startval and endval. --- diff --git a/src/lread.c b/src/lread.c index b3a592ce6de..91633d49bf6 100644 --- a/src/lread.c +++ b/src/lread.c @@ -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); }