[Groonga-commit] groonga/groonga [master] Fix wrong return value

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 1 16:59:12 JST 2013


Kouhei Sutou	2013-02-01 16:59:12 +0900 (Fri, 01 Feb 2013)

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

  Log:
    Fix wrong return value
    
    The return type is void * not grn_rc.

  Modified files:
    lib/plugin.c

  Modified: lib/plugin.c (+1 -1)
===================================================================
--- lib/plugin.c    2013-02-01 16:58:41 +0900 (bed612a)
+++ lib/plugin.c    2013-02-01 16:59:12 +0900 (c96dfc5)
@@ -229,7 +229,7 @@ grn_plugin_sym(grn_ctx *ctx, grn_id id, const char *symbol)
   grn_dl_symbol func;
 
   if (id == GRN_ID_NIL) {
-    return GRN_INVALID_ARGUMENT;
+    return NULL;
   }
 
   if (!grn_hash_get_value(ctx, grn_plugins, id, &plugin)) {
-------------- next part --------------
HTML����������������������������...
Download 



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