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
39f5e519
Commit
39f5e519
authored
Mar 21, 2011
by
Paul Eggert
Browse files
* frame.c (validate_x_resource_name): Simplify count usage.
This also avoids a warning with gcc -Wstrict-overflow.
parent
5ffe6683
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/ChangeLog
src/ChangeLog
+2
-0
src/frame.c
src/frame.c
+1
-2
No files found.
src/ChangeLog
View file @
39f5e519
...
...
@@ -2,6 +2,8 @@
* frame.c (Fmodify_frame_parameters): Simplify loop counter.
This also avoids a warning with gcc -Wstrict-overflow.
(validate_x_resource_name): Simplify count usage.
This also avoids a warning with gcc -Wstrict-overflow.
* fileio.c (Fcopy_file): Report error if fchown or fchmod
fail (Bug#8306).
src/frame.c
View file @
39f5e519
...
...
@@ -3713,8 +3713,7 @@ validate_x_resource_name (void)
return
;
/* If name is entirely invalid, or nearly so, use `emacs'. */
if
(
good_count
==
0
||
(
good_count
==
1
&&
bad_count
>
0
))
if
(
good_count
<
2
)
{
Vx_resource_name
=
build_string
(
"emacs"
);
return
;
...
...
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