summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-21 11:12:38 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-21 11:12:38 -0700
commit39f5e5198f666c1a00b9df957a17b2c3fe11a9ae (patch)
tree3914d103d1086ab5ddf642594afd526a6ae4f1d3 /src/frame.c
parent5ffe6683c36bdaed21324ddd59cb47aecadea8ea (diff)
downloademacs-39f5e5198f666c1a00b9df957a17b2c3fe11a9ae.tar.gz
* frame.c (validate_x_resource_name): Simplify count usage.
This also avoids a warning with gcc -Wstrict-overflow.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c3
1 files changed, 1 insertions, 2 deletions
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)
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;