[Groonga-commit] groonga/groonga at b6a22e0 [master] Fix wrong return type

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 1 18:03:42 JST 2016


Kouhei Sutou	2016-04-01 18:03:42 +0900 (Fri, 01 Apr 2016)

  New Revision: b6a22e0695473e540df3d51fec5610397dbe992c
  https://github.com/groonga/groonga/commit/b6a22e0695473e540df3d51fec5610397dbe992c

  Message:
    Fix wrong return type
    
    It should be int not grn_rc.

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+1 -1)
===================================================================
--- lib/pat.c    2016-04-01 15:56:18 +0900 (7ab9f3c)
+++ lib/pat.c    2016-04-01 18:03:42 +0900 (f23523f)
@@ -1817,7 +1817,7 @@ grn_pat_get_key(grn_ctx *ctx, grn_pat *pat, grn_id id, void *keybuf, int bufsize
   int len;
   uint8_t *key;
   pat_node *node;
-  if (!pat) { return GRN_INVALID_ARGUMENT; }
+  if (!pat) { return 0; }
   if (grn_pat_error_if_truncated(ctx, pat) != GRN_SUCCESS) {
     return 0;
   }
-------------- next part --------------
HTML����������������������������...
Télécharger 



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