Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3ddb0639
Commit
3ddb0639
authored
Mar 16, 2011
by
Paul Eggert
Browse files
* font.c (font_unparse_fcname): Abort in an "impossible" situation
instead of using an uninitialized var.
parent
13a547c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/ChangeLog
src/ChangeLog
+3
-0
src/font.c
src/font.c
+3
-1
No files found.
src/ChangeLog
View file @
3ddb0639
2011-03-16 Paul Eggert <eggert@cs.ucla.edu>
* font.c (font_unparse_fcname): Abort in an "impossible" situation
instead of using an uninitialized var.
* character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
* font.c (font_unparse_xlfd): Don't mix pointers to variables with
src/font.c
View file @
3ddb0639
...
...
@@ -1566,8 +1566,10 @@ font_unparse_fcname (Lisp_Object font, int pixel_size, char *name, int nbytes)
point_size
=
-
1
;
len
+=
21
;
/* for ":pixelsize=NUM" */
}
else
if (FLOATP (val))
else
{
if
(
!
FLOATP
(
val
))
abort
();
pixel_size
=
-
1
;
point_size
=
(
int
)
XFLOAT_DATA
(
val
);
len
+=
11
;
/* for "-NUM" */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment