]> git.eshelyaron.com Git - emacs.git/commitdiff
* frame.c (validate_x_resource_name): Simplify count usage.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 18:12:38 +0000 (11:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 18:12:38 +0000 (11:12 -0700)
This also avoids a warning with gcc -Wstrict-overflow.

src/ChangeLog
src/frame.c

index d833648667d7400ffdc4b6435e7732b5df3be8ac..34104669a53897d5c14f9b44638c96819f9179a1 100644 (file)
@@ -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).
index 60f192e9817ba0667a7167e7fd3684aded0a08e1..3e00e1bf107fed1abf4e044afddb82d634373b5c 100644 (file)
@@ -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;