aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-10-11 14:00:30 +0000
committerMichael Albinus2009-10-11 14:00:30 +0000
commit674a9263fd261f9202c2b602fd0def8ca0165b42 (patch)
tree4fb13ac9f729a6cc559e9b342f8b449f5e3a835d
parent46bcd78cc0470c3ff5447573a87b804ec46078a2 (diff)
downloademacs-674a9263fd261f9202c2b602fd0def8ca0165b42.tar.gz
emacs-674a9263fd261f9202c2b602fd0def8ca0165b42.zip
* net/tramp-cache.el (tramp-flush-connection-property): The hash
can be empty.
-rw-r--r--lisp/net/tramp-cache.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el
index 1bb29d1766f..77aad29faa5 100644
--- a/lisp/net/tramp-cache.el
+++ b/lisp/net/tramp-cache.el
@@ -240,10 +240,12 @@ KEY identifies the connection, it is either a process or a vector."
240 (aset key 3 nil)) 240 (aset key 3 nil))
241 (tramp-message 241 (tramp-message
242 key 7 "%s %s" key 242 key 7 "%s %s" key
243 (let (properties) 243 (let ((hash (gethash key tramp-cache-data))
244 (maphash 244 properties)
245 (lambda (x y) (add-to-list 'properties x 'append)) 245 (if (hash-table-p hash)
246 (gethash key tramp-cache-data)) 246 (maphash
247 (lambda (x y) (add-to-list 'properties x 'append))
248 (gethash key tramp-cache-data)))
247 properties)) 249 properties))
248 (setq tramp-cache-data-changed t) 250 (setq tramp-cache-data-changed t)
249 (remhash key tramp-cache-data)) 251 (remhash key tramp-cache-data))