[Groonga-commit] groonga/groonga at b11c02d [master] Fix syntax

Back to archive index
Kouhei Sutou null+****@clear*****
Sun May 12 06:45:04 JST 2019


Kouhei Sutou	2019-05-12 06:45:04 +0900 (Sun, 12 May 2019)

  Revision: b11c02d542baa05aa8e1732e44cf99e7f8644023
  https://github.com/groonga/groonga/commit/b11c02d542baa05aa8e1732e44cf99e7f8644023

  Message:
    Fix syntax

  Modified files:
    lib/plugin.c

  Modified: lib/plugin.c (+2 -1)
===================================================================
--- lib/plugin.c    2019-05-11 17:34:05 +0900 (4fc8258b9)
+++ lib/plugin.c    2019-05-12 06:45:04 +0900 (edbffb3b9)
@@ -837,7 +837,8 @@ grn_plugin_find_path_is_absolute_path(grn_ctx *ctx, const char *name)
   }
 
   /* Windows */
-  if ((('a' <= name[0] <= 'z') || ('A' <= name[0] <= 'Z')) &&
+  if ((('a' <= name[0] && name[0] <= 'z') ||
+       ('A' <= name[0] && name[0] <= 'Z')) &&
       name[1] == ':' &&
       name[2] == '/') {
     return true;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190512/d623cd04/attachment.html>


More information about the Groonga-commit mailing list
Back to archive index