Fix previous gdb-mi change.
authorGlenn Morris <rgm@gnu.org>
Wed, 9 Mar 2011 08:55:08 +0000 (00:55 -0800)
committerGlenn Morris <rgm@gnu.org>
Wed, 9 Mar 2011 08:55:08 +0000 (00:55 -0800)
lisp/progmodes/gdb-mi.el

index ac76caf..1a7f184 100644 (file)
@@ -671,8 +671,10 @@ detailed description of this mode.
                                    (file-name-directory file))))
                      ((string-equal (match-string 1) "size")
                       (setq hsize (match-string 2))))))))
-      (if (integerp hsize)
-         (set (make-local-variable 'comint-input-ring-size) hsize))
+      (and (stringp hsize)
+          (integerp (string-to-number hsize))
+          (> hsize 0)
+          (set (make-local-variable 'comint-input-ring-size) hsize))
       (if (stringp hfile)
          (set (make-local-variable 'comint-input-ring-file-name) hfile))
       (comint-read-input-ring t)))