changeset 2584:5e41d9c42283

[project @ 1996-12-10 09:39:44 by jwe]
author jwe
date Tue, 10 Dec 1996 09:39:45 +0000
parents df3124e46963
children ad4f3aceb35e
files src/ChangeLog src/pr-output.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,9 @@
 
 	* Version 2.0 released.
 
+	* pr-output.cc (set_format_style): Don't try to access argv unless
+	argc > 1.
+
 	* SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc
 	SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc
 	SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc
--- a/src/pr-output.cc
+++ b/src/pr-output.cc
@@ -1551,10 +1551,11 @@
 set_format_style (int argc, const string_vector& argv)
 {
   int idx = 1;
-  string arg = argv[idx++];
 
   if (--argc > 0)
     {
+      string arg = argv[idx++];
+
       if (arg == "short")
 	{
 	  if (--argc > 0)