Skip to content

Commit

Permalink
Avoid mutating invocation-name (tiny change)
Browse files Browse the repository at this point in the history
* lisp/term/pgtk-win.el (window-system-initialization): copy invocation-name.
  • Loading branch information
kira-bruneau committed Oct 15, 2020
1 parent 66c4043 commit d24a9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/term/pgtk-win.el
Expand Up @@ -303,7 +303,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
;; Make sure we have a valid resource name.
(or (stringp x-resource-name)
(let (i)
(setq x-resource-name invocation-name)
(setq x-resource-name (copy-sequence invocation-name))

;; Change any . or * characters in x-resource-name to hyphens,
;; so as not to choke when we use it in X resource queries.
Expand Down

0 comments on commit d24a9f9

Please sign in to comment.