aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-09-19 09:12:54 +0000
committerGerd Moellmann2001-09-19 09:12:54 +0000
commit0240cfba7b3ad5ca0324f23f00431056ea3058bd (patch)
tree78263b99023312a68203c0fe3aa6509dd073c6ef
parentae16d111d8e4eb2aea52d94103b76e9f31ebcb52 (diff)
downloademacs-0240cfba7b3ad5ca0324f23f00431056ea3058bd.tar.gz
emacs-0240cfba7b3ad5ca0324f23f00431056ea3058bd.zip
(bdf-read-bitmap): Initialize returned values to
defaults.
-rw-r--r--lisp/ps-bdf.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/ps-bdf.el b/lisp/ps-bdf.el
index 34c65d55aa4..3f98e527bd7 100644
--- a/lisp/ps-bdf.el
+++ b/lisp/ps-bdf.el
@@ -359,8 +359,11 @@ The value is a list of DWIDTH, BBX, and BITMAP-STRING.
359DWIDTH is a pixel width of a glyph. 359DWIDTH is a pixel width of a glyph.
360BBX is a bounding box of the glyph. 360BBX is a bounding box of the glyph.
361BITMAP-STRING is a string representing bits by hexadecimal digits." 361BITMAP-STRING is a string representing bits by hexadecimal digits."
362 (let ((coding-system-for-read 'no-conversion) 362 (let* ((coding-system-for-read 'no-conversion)
363 dwidth bbx height yoff bitmap-string) 363 (bbx (elt (bdf-get-font-info bdfname) 4))
364 (dwidth (elt bbx 0))
365 (bitmap-string "")
366 height yoff)
364 (condition-case nil 367 (condition-case nil
365 (with-temp-buffer 368 (with-temp-buffer
366 (insert-file-contents bdfname nil offset (+ offset maxlen)) 369 (insert-file-contents bdfname nil offset (+ offset maxlen))