[Groonga-commit] groonga/groonga at 3429f57 [master] token_filters: add a missing return value check

Back to archive index

Susumu Yata null+****@clear*****
Thu Jan 11 14:30:59 JST 2018


Susumu Yata	2018-01-11 14:30:59 +0900 (Thu, 11 Jan 2018)

  New Revision: 3429f579d763e6e43095e20d1506b7439bd959d0
  https://github.com/groonga/groonga/commit/3429f579d763e6e43095e20d1506b7439bd959d0

  Message:
    token_filters: add a missing return value check
    
    GitHub: fix #266

  Modified files:
    lib/proc/proc_table.c

  Modified: lib/proc/proc_table.c (+6 -4)
===================================================================
--- lib/proc/proc_table.c    2018-01-11 14:13:23 +0900 (350155596)
+++ lib/proc/proc_table.c    2018-01-11 14:30:59 +0900 (e37ae1ed0)
@@ -153,10 +153,12 @@ break_loop:
   if (!name_end) {
     name_end = current;
   }
-  grn_proc_table_set_token_filters_put(ctx,
-                                       token_filters,
-                                       name_start,
-                                       name_end - name_start);
+  if (!grn_proc_table_set_token_filters_put(ctx,
+                                            token_filters,
+                                            name_start,
+                                            name_end - name_start)) {
+    return GRN_FALSE;
+  }
 
   return GRN_TRUE;
 }
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180111/6b29b0ab/attachment-0001.htm 



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