]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation warning in rmailmm
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 14 Jun 2019 11:30:13 +0000 (13:30 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 14 Jun 2019 12:05:30 +0000 (14:05 +0200)
* lisp/mail/rmailmm.el (rmail-mime-insert-bulk): Remove apparently
superfluous call to string-as-unibyte -- the buffer should be
unibyte already at this point.

lisp/mail/rmailmm.el

index af528135ccb2cbeff5a5c757255a30a39c90e7c8..95977e826d7d6c2a92ef598d2f1c3f36cbae5802 100644 (file)
@@ -836,7 +836,8 @@ directly."
              size (car bulk-data))
       (if (stringp (aref body 0))
          (setq data (aref body 0))
-       (setq data (string-as-unibyte (buffer-string)))
+       (setq data (buffer-string))
+        (cl-assert (not (multibyte-string-p data)))
        (aset body 0 data)
        (rmail-mime-set-bulk-data entity)
        (delete-region (point-min) (point-max)))