aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-21 11:12:38 -0700
committerPaul Eggert2011-03-21 11:12:38 -0700
commit39f5e5198f666c1a00b9df957a17b2c3fe11a9ae (patch)
tree3914d103d1086ab5ddf642594afd526a6ae4f1d3 /src
parent5ffe6683c36bdaed21324ddd59cb47aecadea8ea (diff)
downloademacs-39f5e5198f666c1a00b9df957a17b2c3fe11a9ae.tar.gz
emacs-39f5e5198f666c1a00b9df957a17b2c3fe11a9ae.zip
* frame.c (validate_x_resource_name): Simplify count usage.
This also avoids a warning with gcc -Wstrict-overflow.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/frame.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d833648667d..34104669a53 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * frame.c (Fmodify_frame_parameters): Simplify loop counter. 3 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
4 This also avoids a warning with gcc -Wstrict-overflow. 4 This also avoids a warning with gcc -Wstrict-overflow.
5 (validate_x_resource_name): Simplify count usage.
6 This also avoids a warning with gcc -Wstrict-overflow.
5 7
6 * fileio.c (Fcopy_file): Report error if fchown or fchmod 8 * fileio.c (Fcopy_file): Report error if fchown or fchmod
7 fail (Bug#8306). 9 fail (Bug#8306).
diff --git a/src/frame.c b/src/frame.c
index 60f192e9817..3e00e1bf107 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3713,8 +3713,7 @@ validate_x_resource_name (void)
3713 return; 3713 return;
3714 3714
3715 /* If name is entirely invalid, or nearly so, use `emacs'. */ 3715 /* If name is entirely invalid, or nearly so, use `emacs'. */
3716 if (good_count == 0 3716 if (good_count < 2)
3717 || (good_count == 1 && bad_count > 0))
3718 { 3717 {
3719 Vx_resource_name = build_string ("emacs"); 3718 Vx_resource_name = build_string ("emacs");
3720 return; 3719 return;