Commit c7d6ddf0 authored by Nick Roberts's avatar Nick Roberts
Browse files

(comint-exec-1): Check command is non-null first.

Part of gdb-mi.el change (2009-08-28).
parent 4324f7ca
......@@ -790,7 +790,7 @@ buffer. The hook `comint-exec-hook' is run after each exec."
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)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment