summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2010-10-31 12:51:18 +0000
committerDan Davison <dandavison7@gmail.com>2010-10-31 12:51:18 +0000
commitcf0cdd7785198874166a48a6a208647b5f732b79 (patch)
treec26e258efb0a43068296f859e9424b882aa62275
parent0778fb87480b27bcf65c74424df7c461e84285fd (diff)
downloadorg-mode-cf0cdd7785198874166a48a6a208647b5f732b79.tar.gz
babel: Fix data structure corruption when sorting parameters
* lisp/ob.el (org-babel-sha1-hash): Avoid corrupting `info' data structure by side-effects of `sort'.
-rw-r--r--lisp/ob.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index 78d005a..38c03c1 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -606,7 +606,7 @@ the current subtree."
(let ((print-level nil)
(info (or info (org-babel-get-src-block-info))))
(setf (nth 2 info)
- (sort (nth 2 info)
+ (sort (copy-tree (nth 2 info))
(lambda (a b) (string< (car a) (car b)))))
(let ((hash (sha1
(format "%s-%s"