]> git.eshelyaron.com Git - emacs.git/commitdiff
(comint-exec-1): Check command is non-null first.
authorNick Roberts <nickrob@snap.net.nz>
Sun, 30 Aug 2009 22:24:05 +0000 (22:24 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 30 Aug 2009 22:24:05 +0000 (22:24 +0000)
Part of gdb-mi.el change (2009-08-28).

lisp/comint.el

index 69fd32d9b3bfd766a9aec70b3924fbe8f1413346..36d7de5ec2fcc2123955857f0c06246a965c0b86 100644 (file)
@@ -790,7 +790,7 @@ buffer.  The hook `comint-exec-hook' is run after each exec."
              default-directory
            "/"))
        proc decoding encoding changed)
-    (let ((exec-path (if (file-name-directory command)
+    (let ((exec-path (if (and command (file-name-directory command))
                         ;; If the command has slashes, make sure we
                         ;; first look relative to the current directory.
                         (cons default-directory exec-path) exec-path)))