Commit e63f0ff0 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(tar-mode-write-file): Don't signal an error by

calling byte-to-position with a nil tar-header-offset.
parent 974548ec
......@@ -1245,8 +1245,9 @@ Leaves the region wide."
;; tar-header-offset turns out to be null for files fetched with W3,
;; at least.
(let ((coding-system-for-write 'no-conversion))
(write-region (or (byte-to-position tar-header-offset)
(point-min))
(write-region (if tar-header-offset
(byte-to-position tar-header-offset)
(point-min))
(point-max)
buffer-file-name nil t))
(tar-clear-modification-flags)
......
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